CVE-2026-23066
JSON

7.8high

rxrpc: Fix recvmsg() unconditional requeue

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.12% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix recvmsg() unconditional requeue If rxrpc_recvmsg() fails because MSG_DONTWAIT was specified but the call at the front of the recvmsg queue already has its mutex locked, it requeues the call - whether or not the call is already queued. The call may be on the queue because MSG_PEEK was also passed and so the call was not dequeued or because the I/O thread requeued it. The unconditional requeue may then corrupt the recvmsg queue, leading to things like UAFs or refcount underruns. Fix this by only requeuing the call if it isn't already on the queue - and moving it to the front if it is already queued. If we don't queue it, we have to put the ref we obtained by dequeuing it. Also, MSG_PEEK doesn't dequeue the call so shouldn't call rxrpc_notify_socket() for the call if we didn't use up all the data on the queue, so fix that also.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 540b1c48c37ac0ad66212004db21e1ff7e2d78be before 8fd3b5e297854a4da0f273169baf4b1b7b257b97, from 540b1c48c37ac0ad66212004db21e1ff7e2d78be before c198628f3fca5c874d93874c233014d336e09f64, from 540b1c48c37ac0ad66212004db21e1ff7e2d78be before c6cebcb4e0b3140ec2ace45c020a9049527385d1, from 540b1c48c37ac0ad66212004db21e1ff7e2d78be before 0464bf75590da75b8413c3e758c04647b4cdb3c6, from 540b1c48c37ac0ad66212004db21e1ff7e2d78be before cf969bddd6e69c5777fa89dc88402204e72f312a, from 540b1c48c37ac0ad66212004db21e1ff7e2d78be before 930114425065f7ace6e0c0630fab4af75e059ea8, from 540b1c48c37ac0ad66212004db21e1ff7e2d78be before 2c28769a51deb6022d7fbd499987e237a01dd63a, 4.11
Not affected: before 4.11, from 5.10.258 up to 5.10.*, from 5.15.209 up to 5.15.*, from 6.1.175 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.*
CVE List
linux linux_kernelfrom 4.11 before 6.18.8, 6.19NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-362CWE-674

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix recvmsg() unconditional requeue If rxrpc_recvmsg() fails because MSG_DONTWAIT was specified but the call at the front of the recvmsg queue already has its mutex locked, it requeues the call - whether or not the call is already queued. The call may be on the queue because MSG_PEEK was also passed and so the call was not dequeued or because the I/O thread requeued it. The unconditional requeue may then corrupt the recvmsg queue, leading to things like UAFs or refcount underruns. Fix this by only requeuing the call if it isn't already on the queue - and moving it to the front if it is already queued. If we don't queue it, we have to put the ref we obtained by dequeuing it. Also, MSG_PEEK doesn't dequeue the call so shouldn't call rxrpc_notify_socket() for the call if we didn't use up all the data on the queue, so fix that also.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: rxrpc: Corrección del reenqueque incondicional de recvmsg() Si rxrpc_recvmsg() falla porque se especificó MSG_DONTWAIT pero la llamada al frente de la cola de recvmsg ya tiene su mutex bloqueado, reenquequea la llamada, esté o no la llamada ya en la cola. La llamada puede estar en la cola porque también se pasó MSG_PEEK y por lo tanto la llamada no fue desencolada o porque el hilo de E/S la reenquequeó. El reenqueque incondicional puede entonces corromper la cola de recvmsg, lo que lleva a cosas como UAFs o subdesbordamientos de refcount. Solucione esto reenquequeando la llamada solo si no está ya en la cola, y moviéndola al frente si ya está en la cola. Si no la encolamos, tenemos que liberar la referencia que obtuvimos al desencolarla. Además, MSG_PEEK no desencola la llamada, por lo que no debería llamar a rxrpc_notify_socket() para la llamada si no consumimos todos los datos de la cola, así que corrija eso también.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23066 changed 2026-10-19CVE Terms of Use
NVDCVE-2026-23066 changed 2026-10-19Public domain