CVE-2026-23066

rxrpc: Fix recvmsg() unconditional requeue

State
Published
Severity
7.8 High
Published
Feb 4, 2026
Updated
Oct 19, 2026
Reserved
Jan 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 540b1c48c37ac0ad66212004db21e1ff7e2d78be to before 8fd3b5e297854a4da0f273169baf4b1b7b257b97Affected
  • 540b1c48c37ac0ad66212004db21e1ff7e2d78be to before c198628f3fca5c874d93874c233014d336e09f64Affected
  • 540b1c48c37ac0ad66212004db21e1ff7e2d78be to before c6cebcb4e0b3140ec2ace45c020a9049527385d1Affected
  • 540b1c48c37ac0ad66212004db21e1ff7e2d78be to before 0464bf75590da75b8413c3e758c04647b4cdb3c6Affected
  • 540b1c48c37ac0ad66212004db21e1ff7e2d78be to before cf969bddd6e69c5777fa89dc88402204e72f312aAffected
  • 540b1c48c37ac0ad66212004db21e1ff7e2d78be to before 930114425065f7ace6e0c0630fab4af75e059ea8Affected
  • 540b1c48c37ac0ad66212004db21e1ff7e2d78be to before 2c28769a51deb6022d7fbd499987e237a01dd63aAffected
LinuxLinux
  • 4.11Affected
  • before 4.11Not affected
  • 5.10.258 through 5.10.*Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.6.130 through 6.6.*Not affected
  • 6.12.78 through 6.12.*Not affected
  • 6.18.8 through 6.18.*Not affected
  • 6.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.