net: Drop the lock in skb_may_tx_timestamp()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.18.16, Kernel 6.19.6, Kernel 4839cbda8f13e99ce2bb3b593f5cc3288415684b and 12 more.
In the Linux kernel, the following vulnerability has been resolved: net: Drop the lock in skb_may_tx_timestamp() skb_may_tx_timestamp() may acquire sock::sk_callback_lock. The lock must not be taken in IRQ context, only softirq is okay. A few drivers receive the timestamp via a dedicated interrupt and complete the TX timestamp from that handler. This will lead to a deadlock if the lock is already write-locked on the same CPU. Taking the lock can be avoided. The socket (pointed by the skb) will remain valid until the skb is released. The ->sk_socket and ->file member will be set to NULL once the user closes the socket which may happen before the timestamp arrives. If we happen to observe the pointer while the socket is closing but before the pointer is set to NULL then we may use it because both pointer (and the file's cred member) are RCU freed. Drop the lock. Use READ_ONCE() to obtain the individual pointer. Add a matching WRITE_ONCE() where the pointer are cleared.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.0 <6.18.16, >=6.19 <6.19.6, =7.0, >=b245be1f4db1a0394e4b6eb66059814b46670ac3 <4839cbda8f13e99ce2bb3b593f5cc3288415684b, >=b245be1f4db1a0394e4b6eb66059814b46670ac3 <983512f3a87fd8dc4c94dfa6b596b6e57df5aad7, >=b245be1f4db1a0394e4b6eb66059814b46670ac3 <c770217044d9cbe16a1f7c385cf080ed06a2fc04, >=b245be1f4db1a0394e4b6eb66059814b46670ac3 <cd2463ec60f0d6e460078037c86f9d0947ee1ff6, >=b245be1f4db1a0394e4b6eb66059814b46670ac3 <cf7599116c4c0082fd25cb1bf0254631da0ed06e, >=b245be1f4db1a0394e4b6eb66059814b46670ac3 <e4c6efb3b70ff87f1df99efce2f8893717695718, >=b245be1f4db1a0394e4b6eb66059814b46670ac3 <f3e4cceafad27c9363c33622732f86722846ec6f, =4.0, >=b245be1f4db1a0394e4b6eb66059814b46670ac3 <3709d73ace37e9aaebb688f5a5cf706d74350b64 | 6.18.16, 6.19.6, 4839cbda8f13e99ce2bb3b593f5cc3288415684b, 983512f3a87fd8dc4c94dfa6b596b6e57df5aad7, c770217044d9cbe16a1f7c385cf080ed06a2fc04, cd2463ec60f0d6e460078037c86f9d0947ee1ff6, cf7599116c4c0082fd25cb1bf0254631da0ed06e, e4c6efb3b70ff87f1df99efce2f8893717695718, f3e4cceafad27c9363c33622732f86722846ec6f, 3709d73ace37e9aaebb688f5a5cf706d74350b64 |
| linux-kernel: Kernel | >=4.0.0 <5.10.261, >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.16, >=6.19.0 <6.19.6, >=6.2.0 <6.6.145, >=6.7.0 <6.12.95 | 5.10.261, 5.15.212, 6.1.178, 6.18.16, 6.19.6, 6.6.145, 6.12.95 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket