CVE-2025-23138

watch_queue: fix pipe accounting mismatch

MEDIUM
5.5
CVSS Score
Published: April 16, 2025 at 02:13 PM UTC
Updated: June 17, 2026 at 08:52 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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()?)

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.7.35.10.210 ≤ v < 5.10.2365.15.149 ≤ v < 5.15.1806.1.76 ≤ v < 6.1.1346.13 ≤ v < 6.13.116.14 ≤ v < 6.14.26.6.15 ≤ v < 6.6.876.7.3 ≤ v < 6.12.236.7.3 ≤ v < 6.86.8 ≤ v < 6.12.236.8 ≤ v < 6.13.116.8 ≤ v < 6.14.26.8 ≤ v < 6.15162ae0e78bdabf84ef10c1293c4ed7865cb7d3c83efbd114b91525bb095b8ae046382197d92126b95.10.2105.15.1496.1.766.6.156.7.36.868e51bdb1194f11d3452525b99c98aff6f837b246fb70694f8d1ac34e45246b0ac988f025e1e5b55b87a1229d8668fbc78ebd9ca0fc797a76001c60fe95aada4cb93d42e25c30a0ef9eb2923d9711d4a
Vendor states this is fixed in 205028ebba838938d3b264dda1d0708fa7fe1ade (fixed)
Vendor states this is fixed in 2d680b988656bb556c863d8b46d9b9096842bf3d (fixed)
Vendor states this is fixed in 471c89b7d4f58bd6082f7c1fe14d4ca15c7f1284 (fixed)
Vendor states this is fixed in 56ec918e6c86c1536870e4373e91eddd0c44245f (fixed)
Vendor states this is fixed in 6dafa27764183738dc5368b669b71e3d0d154f12 (fixed)
Vendor states this is fixed in 8658c75343ed00e5e154ebbe24335f51ba8db547 (fixed)
Vendor states this is fixed in d40e3537265dea9e3c33021874437ff26dc18787 (fixed)
Vendor states this is fixed in f13abc1e8e1a3b7455511c4e122750127f6bc9b0 (fixed)
Vendor states this is fixed in 5.10.236 (unaffected)
Vendor states this is fixed in 5.15.180 (unaffected)
Vendor states this is fixed in 6.1.134 (unaffected)
Vendor states this is fixed in 6.12.23 (unaffected)
Vendor states this is fixed in 6.13.11 (unaffected)
Vendor states this is fixed in 6.14.2 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.87 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/205028ebba838938d3b264dda1d0708fa7fe1ade
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2d680b988656bb556c863d8b46d9b9096842bf3d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/471c89b7d4f58bd6082f7c1fe14d4ca15c7f1284
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/56ec918e6c86c1536870e4373e91eddd0c44245f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6dafa27764183738dc5368b669b71e3d0d154f12
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8658c75343ed00e5e154ebbe24335f51ba8db547
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d40e3537265dea9e3c33021874437ff26dc18787
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f13abc1e8e1a3b7455511c4e122750127f6bc9b0

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card