CVE-2021-47360 binder: make sure fd closes complete
A flaw in the Linux kernel binder driver can cause hung processes if file descriptors are not properly closed during buffer freeing.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47360?
CVE-2021-47360 is a medium-severity denial of service vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
binder: make sure fd closes complete
During BC_FREE_BUFFER processing, the BINDER_TYPE_FDA object cleanup may close 1 or more fds. The close operations are completed using the task work mechanism -- which means the thread needs to return to userspace or the file object may never be dereferenced -- which can lead to hung processes.
Force the binder thread back to userspace if an fd is closed during BC_FREE_BUFFER handling.
Weakness: CWE-252
Which versions are affected by CVE-2021-47360?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47360?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-47360 being exploited?
There is no known exploitation of CVE-2021-47360 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47360, GHSA-76pr-h99m-q4fj, UBUNTU-CVE-2021-47360.