CVE-2025-23138

watch_queue: fix pipe accounting mismatch

No CVSS score yet EPSS 0.22%

Published 16 Apr 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-23138

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-23138 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 162ae0e78bdabf84ef10c1293c4ed7865cb7d3c8, before 8658c75343ed00e5e154ebbe24335f51ba8db547
affected from 3efbd114b91525bb095b8ae046382197d92126b9, before 471c89b7d4f58bd6082f7c1fe14d4ca15c7f1284
affected from b87a1229d8668fbc78ebd9ca0fc797a76001c60f, before d40e3537265dea9e3c33021874437ff26dc18787
affected from 68e51bdb1194f11d3452525b99c98aff6f837b24, before 6dafa27764183738dc5368b669b71e3d0d154f12
affected from e95aada4cb93d42e25c30a0ef9eb2923d9711d4a, before 56ec918e6c86c1536870e4373e91eddd0c44245f
affected from e95aada4cb93d42e25c30a0ef9eb2923d9711d4a, before 2d680b988656bb556c863d8b46d9b9096842bf3d
affected from e95aada4cb93d42e25c30a0ef9eb2923d9711d4a, before 205028ebba838938d3b264dda1d0708fa7fe1ade
affected from e95aada4cb93d42e25c30a0ef9eb2923d9711d4a, before f13abc1e8e1a3b7455511c4e122750127f6bc9b0
affected 6fb70694f8d1ac34e45246b0ac988f025e1e5b55
affected from 5.10.210, before 5.10.236
affected from 5.15.149, before 5.15.180
affected from 6.1.76, before 6.1.134
affected from 6.6.15, before 6.6.87
affected from 6.7.3, before 6.8
Other versions: unaffected
Linux
affected 6.8
unaffected before 6.8
unaffected from 5.10.236 up to and including 5.10.*
unaffected from 5.15.180 up to and including 5.15.*
unaffected from 6.1.134 up to and including 6.1.*
unaffected from 6.6.87 up to and including 6.6.*
unaffected from 6.12.23 up to and including 6.12.*
unaffected from 6.13.11 up to and including 6.13.*
unaffected from 6.14.2 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-23138 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-23138

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-23138
trivy image --scanners vuln IMAGE | grep CVE-2025-23138

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-23138 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.