CVE-2025-23138 - CVE House
Back to Database
Status published Unknown CVE-2025-23138

watch_queue: fix pipe accounting mismatch

Vulnerability Description

In the Linux kernel, the following vulnerability has been resolved: watch_queue: fix pipe accounting mismatch Currently, watch_queue_set_size() modifies the pipe buffers charged to user->pipe_bufs without updating the pipe->nr_accounted on the pipe itself, due to the if (!pipe_has_watch_queue()) test in pipe_resize_ring(). This means that when the pipe is ultimately freed, we decrement user->pipe_bufs by something other than what than we had charged to it, potentially leading to an underflow. This in turn can cause subsequent too_many_pipe_buffers_soft() tests to fail with -EPERM. To remedy this, explicitly account for the pipe usage in watch_queue_set_size() to match the number set via account_pipe_buffers() (It's unclear why watch_queue_set_size() does not update nr_accounted; it may be due to intentional overprovisioning in watch_queue_set_size()?)

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-23138

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
162ae0e78bdabf84ef10c1293c4ed7865cb7d3c8, 3efbd114b91525bb095b8ae046382197d92126b9, b87a1229d8668fbc78ebd9ca0fc797a76001c60f, 68e51bdb1194f11d3452525b99c98aff6f837b24, e95aada4cb93d42e25c30a0ef9eb2923d9711d4a, 6fb70694f8d1ac34e45246b0ac988f025e1e5b55, 5.10.210, 5.15.149, 6.1.76, 6.6.15, 6.7.3, 6.8, 0, 5.10.236, 5.15.180, 6.1.134, 6.6.87, 6.12.23, 6.13.11, 6.14.2, 6.15

Timeline

Official Publish: April 16th, 2025
Last Modified: May 23rd, 2026
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.