[OSSA-2021-006] Routes middleware memory leak for nonexistent controllers (CVE-2021-40797)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Security Advisory |
Fix Released
|
Medium
|
Unassigned | ||
neutron |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Authorized cloud user may do API requests to neutron to not existing endpoints, like e.g.:
curl -g -i -X GET http://
and each such request will increase memory consumption of the neutron-api worker process.
What I did was:
* start neutron server with just one api worker (easier to calculate memory consumption but it would be the same leak in case of more workers too). Memory consumption was:
sudo pmap 212436 | tail -n 1
total 183736K
* now run command like:
$ i=1; while [ $i -lt 2000 ]; do echo "Request $i"; curl -g -i -X GET http://
* check memory consumption of the same api worker now:
sudo pmap 212436 | tail -n 1
total 457896K
CVE References
summary: |
- neutron api worker leaks memory when processing requests to not existing - controllers + Routes middleware memory leak for nonexistent controllers + (CVE-2021-40797) |
summary: |
- Routes middleware memory leak for nonexistent controllers - (CVE-2021-40797) + [OSSA-2021-006] Routes middleware memory leak for nonexistent + controllers (CVE-2021-40797) |
tags: | added: neutron-proactive-backport-potential |
summary: |
[OSSA-2021-006] Routes middleware memory leak for nonexistent - controllers (CVE-2021-40797) + controllers (CVE-2021-40797)dsd |
summary: |
[OSSA-2021-006] Routes middleware memory leak for nonexistent - controllers (CVE-2021-40797)dsd + controllers (CVE-2021-40797) |
Changed in ossa: | |
assignee: | Jeremy Stanley (fungi) → nobody |
tags: | removed: neutron-proactive-backport-potential |
Since this report concerns a possible security risk, an incomplete
security advisory task has been added while the core security
reviewers for the affected project or projects confirm the bug and
discuss the scope of any vulnerability along with potential
solutions.