inet: frags: publish queues before arming timer
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel f4e4dab62181b7fe7c011bed6fbef9fc3d48c769, Kernel 4.5, Kernel 08a04d7bfb9c103432561aff8a62b6872e694a6a and 13 more.
In the Linux kernel, the following vulnerability has been resolved: inet: frags: publish queues before arming timer inet_frag_create() arms the fragment queue timer before inserting the queue into the fqdir rhashtable. If the namespace fragment timeout is zero or negative, the timer can run before the queue is published. The timer callback then marks the queue complete, tries to remove a node that is not in the hash table yet, and drops the anticipated hash reference. Creation can subsequently publish the completed queue without restoring that reference, leaving a stale hash node after the caller drops the remaining reference. Publish the queue first and arm the timer while holding the queue lock. This makes timer expiry wait until the queue is visible in the hash table, so inet_frag_kill() can remove the node and balance the hash reference.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=648700f76b03b7e8149d13cc2bdb3355035258a9 <f4e4dab62181b7fe7c011bed6fbef9fc3d48c769, >=4.4.174 <4.5, >=648700f76b03b7e8149d13cc2bdb3355035258a9 <08a04d7bfb9c103432561aff8a62b6872e694a6a, >=648700f76b03b7e8149d13cc2bdb3355035258a9 <39c6c4b267b65f00e0b0335a2ae00cbe9e3174f0, >=648700f76b03b7e8149d13cc2bdb3355035258a9 <4ed0681dc2c1e0538b79d2fc56190ffcb369dacd, >=648700f76b03b7e8149d13cc2bdb3355035258a9 <653d7ddf6cba867777a3d14c4f83ace008c5ad13, >=648700f76b03b7e8149d13cc2bdb3355035258a9 <928128865e43b197e30688dc1bc991592c97edcf, >=648700f76b03b7e8149d13cc2bdb3355035258a9 <9f904dd3e455750e5d4ec9b2f134835811b85a2f, >=648700f76b03b7e8149d13cc2bdb3355035258a9 <d3ffb89b2944672cf7bdd8e9ee577d2043b4a956, =4.17, =493107105843f299662b3b664a83804645564f12 | f4e4dab62181b7fe7c011bed6fbef9fc3d48c769, 4.5, 08a04d7bfb9c103432561aff8a62b6872e694a6a, 39c6c4b267b65f00e0b0335a2ae00cbe9e3174f0, 4ed0681dc2c1e0538b79d2fc56190ffcb369dacd, 653d7ddf6cba867777a3d14c4f83ace008c5ad13, 928128865e43b197e30688dc1bc991592c97edcf, 9f904dd3e455750e5d4ec9b2f134835811b85a2f, d3ffb89b2944672cf7bdd8e9ee577d2043b4a956 |
| linux-kernel: Kernel | >=4.4.174 <4.5, >=5.11.0 <5.15.218, >=5.16.0 <6.1.185, >=6.13.0 <6.18.45, >=6.19.0 <7.1.9, >=6.2.0 <6.6.154, >=6.7.0 <6.12.106, >=4.17.0 <5.10.267 | 4.5, 5.15.218, 6.1.185, 6.18.45, 7.1.9, 6.6.154, 6.12.106, 5.10.267 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket