rxrpc: Fix update of call->tx_pending without holding lock

State
Published
Severity
Not Scored
Published
Nov 19, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

rxrpc: Fix update of call->tx_pending without holding lock

Currently, rxrpc_send_data() updates call->tx_pending just before it returns - but it won't be holding the call->user_mutex when it does this if a wait was interrupted by a signal. This would allow a parallel sendmsg() to race.

Further, both the callers of rxrpc_send_data() call it with the lock held, and then it returns an indication through the parameter list to say whether it has dropped the lock or not - after which the callers both just drop the lock if it's still held.

Fix this by:

(1) Moving the release of call->user_mutex down into rxrpc_send_data() and get rid of the indicator parameter. This makes it easier to see where the lock is held.

(2) After waiting, if the attempt to reacquire the mutex is interrupted, just return directly there rather than going to out_unlock

(3) Restricting the txb variable to inside the buffering loop and leaving ->tx_pending set until we've queued the buffer.

Note that there's a slight change in behaviour in that wait_for_space failure now doesn't check for completion because it doesn't hold the call user_mutex. The caller, however, should re-issue the send and pick up any error at a second attempt.

ProductVersions
Linux Linux79e2ca7aa96e80961828ab6312264633b66183cc to before 43ba0d1e2e2aaef662eeebb30b7065e54a92f153 Affected2bc769b8edb158be7379d15f36e23d66cf850053 to before d625b62be703e03d8ebe1caf578029d699009dcd Affectedb0f571ecd7943423c25947439045f0d352ca3dbf to before a1610975f8766ac492de56336086e7a895881947 Affectedb0f571ecd7943423c25947439045f0d352ca3dbf to before b878e2b7445a220746eaa3db0e448d6b4a122d2d Affectedb0f571ecd7943423c25947439045f0d352ca3dbf to before 35f7a69391ca0819d04ca6db3c2355848d633e16 Affectedb0f571ecd7943423c25947439045f0d352ca3dbf to before 965456110cf6952cc4eec80761171503e6e424df Affectedb0f571ecd7943423c25947439045f0d352ca3dbf to before ec98e8bdbde85e2dd2d43570e25b52bdfac1735b Affectedb0f571ecd7943423c25947439045f0d352ca3dbf to before 7801c42c3bb737cfb06194a383873fcad8daacf5 Affected091dc91e119fdd61432347231724f4e861c6b465 Affected5.10.140 to before 5.10.275 Affected5.15.64 to before 5.15.226 Affected5.19.6 to before 5.20 Affected
Linux Linux6.0 Affectedbefore 6.0 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.