5.5medium
watch_queue: fix pipe accounting mismatch
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 162ae0e78bdabf84ef10c1293c4ed7865cb7d3c8 before 8658c75343ed00e5e154ebbe24335f51ba8db547, from 3efbd114b91525bb095b8ae046382197d92126b9 before 471c89b7d4f58bd6082f7c1fe14d4ca15c7f1284, from b87a1229d8668fbc78ebd9ca0fc797a76001c60f before d40e3537265dea9e3c33021874437ff26dc18787, from 68e51bdb1194f11d3452525b99c98aff6f837b24 before 6dafa27764183738dc5368b669b71e3d0d154f12, from e95aada4cb93d42e25c30a0ef9eb2923d9711d4a before 56ec918e6c86c1536870e4373e91eddd0c44245f, from e95aada4cb93d42e25c30a0ef9eb2923d9711d4a before 2d680b988656bb556c863d8b46d9b9096842bf3d, from e95aada4cb93d42e25c30a0ef9eb2923d9711d4a before 205028ebba838938d3b264dda1d0708fa7fe1ade, from e95aada4cb93d42e25c30a0ef9eb2923d9711d4a before f13abc1e8e1a3b7455511c4e122750127f6bc9b0 and 7 more Not affected: before 6.8, from 5.10.236 up to 5.10.*, from 5.15.180 up to 5.15.*, from 6.1.134 up to 6.1.*, from 6.6.87 up to 6.6.*, from 6.12.23 up to 6.12.* | CVE List |
| linux linux_kernel | from 5.10.210 before 5.10.236, from 5.15.149 before 5.15.180, from 6.1.76 before 6.1.134, from 6.6.15 before 6.6.87, from 6.7.3 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2 | NVD |
| debian debian_linux | 11.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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()?)
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: watch_queue: corrección de la discrepancia en la contabilidad de la tubería. Actualmente, watch_queue_set_size() modifica los búferes de la tubería cargados a user->pipe_bufs sin actualizar pipe->nr_accounted en la propia tubería, debido a la prueba if (!pipe_has_watch_queue()) en pipe_resize_ring(). Esto significa que, cuando la tubería se libera finalmente, se decrementa user->pipe_bufs en un valor distinto al que se le había cargado, lo que podría provocar un desbordamiento. Esto, a su vez, puede provocar que las pruebas too_many_pipe_buffers_soft() posteriores fallen con -EPERM. Para remediar esto, tenga en cuenta explícitamente el uso de la tubería en watch_queue_set_size() para que coincida con el número establecido mediante account_pipe_buffers() (no está claro por qué watch_queue_set_size() no actualiza nr_accounted; puede deberse a un exceso de aprovisionamiento intencional en watch_queue_set_size()).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-23138 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2025-23138 changed 2026-11-05 | Public domain |