nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel edb4f7bcffdb768103c561c588de310f34dd26ba, Kernel 35f55810ee2410815d687ff00fb8412d63ab2899, Kernel 4074511c39abed4b763392f0430bf84f166abb4c and 4 more.
In the Linux kernel, the following vulnerability has been resolved: nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF A REPLY AUTH_SEND command can derive a dhchap_skey key while a concurrent AUTH_RECEIVE command observing this REPLY state executes the failure path and frees that key. The REPLY command then continues and writes into freed memory, causing a use-after-free. KASAN reports it as: BUG: KASAN: slab-use-after-free in __sha256_final Write of size 4 at addr ffff88800359c540 ... nvmet_auth_sq_free (drivers/nvme/target/auth.c:237) nvmet_execute_auth_receive (drivers/nvme/target/fabrics-cmd-auth.c:621) Add a mutex to each submission queue to serialize authentication commands and timeout handling. Unlock the mutex before completing requests and ignore outdated timeout callbacks. Limit timeout delays to prevent immediate expiry on 32-bit kernels.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=7a277c37d3522e9b2777d762bbbcecafae2b1f8d <edb4f7bcffdb768103c561c588de310f34dd26ba, >=7a277c37d3522e9b2777d762bbbcecafae2b1f8d <35f55810ee2410815d687ff00fb8412d63ab2899, >=7a277c37d3522e9b2777d762bbbcecafae2b1f8d <4074511c39abed4b763392f0430bf84f166abb4c, >=7a277c37d3522e9b2777d762bbbcecafae2b1f8d <53f6efe00cea0c0cf7bd99debe3cdac8567170b5, =6.0 | edb4f7bcffdb768103c561c588de310f34dd26ba, 35f55810ee2410815d687ff00fb8412d63ab2899, 4074511c39abed4b763392f0430bf84f166abb4c, 53f6efe00cea0c0cf7bd99debe3cdac8567170b5 |
| linux-kernel: Kernel | >=6.13.0 <6.18.63, >=6.19.0 <7.3.2, >=6.0.0 <6.12.117 | 6.18.63, 7.3.2, 6.12.117 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket