CVE-2023-52672 pipe: wakeup wr_wait after setting max_usage
A Linux kernel regression causes pipe write lockups after resizing, leading to denial of service for applications using pipes.
- 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-2023-52672?
CVE-2023-52672 is a high-severity denial of service vulnerability in Debian Debian Linux, published on 17 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:
pipe: wakeup wr_wait after setting max_usage
Commit c73be61cede5 ("pipe: Add general notification queue support") a regression was introduced that would lock up resized pipes under certain conditions. See the reproducer in [1].
The commit resizing the pipe ring size was moved to a different function, doing that moved the wakeup for pipe->wr_wait before actually raising pipe->max_usage. If a pipe was full before the resize occured it would result in the wakeup never actually triggering pipe_write.
Set @max_usage and @nr_accounted before waking writers if this isn't a watch queue.
[Christian Brauner <[email protected]>: rewrite to account for watch queues]
Weakness: CWE-400
Which versions are affected by CVE-2023-52672?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2023-52672?
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-2023-52672 being exploited?
There is no known exploitation of CVE-2023-52672 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2023-52672, DEBIAN-CVE-2023-52672, GHSA-7gxw-6q7r-q63r, UBUNTU-CVE-2023-52672.