smb: client: pin DFS superblock in iterator callback
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ea43a15cea36dc5ddd832be5bddeac7dd804cbcf, Kernel 3c9acc9835c304013a4faeb969fe9333d66ca9f8, Kernel 5b01a8c0209690db75341528ec53fd87e0ac1460 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: smb: client: pin DFS superblock in iterator callback tcon_super_cb() stores a raw superblock pointer, but __cifs_get_super() takes its active reference only after iterate_supers_type() has dropped s_umount and its passive reference. Concurrent DFS automount expiry can therefore free the superblock before cifs_sb_active() uses it. A deterministic KASAN test reproduces the race as: BUG: KASAN: slab-use-after-free in cifs_sb_active+0x77/0x80 The same test passes with this change applied. Take the active reference in the callback while iterate_supers_type() still holds s_umount shared. cifs_put_tcp_super() remains the matching release.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=bacd704a95ad0b93af995aae4a523aa046f46563 <ea43a15cea36dc5ddd832be5bddeac7dd804cbcf, >=bacd704a95ad0b93af995aae4a523aa046f46563 <3c9acc9835c304013a4faeb969fe9333d66ca9f8, >=bacd704a95ad0b93af995aae4a523aa046f46563 <5b01a8c0209690db75341528ec53fd87e0ac1460, >=bacd704a95ad0b93af995aae4a523aa046f46563 <a6b6561522212af852c9ad8a7dca8d59ef2c7377, >=bacd704a95ad0b93af995aae4a523aa046f46563 <d806d5a85dcbe2a0f181b2f0f9f61ddfbefa1818, =5.7 | ea43a15cea36dc5ddd832be5bddeac7dd804cbcf, 3c9acc9835c304013a4faeb969fe9333d66ca9f8, 5b01a8c0209690db75341528ec53fd87e0ac1460, a6b6561522212af852c9ad8a7dca8d59ef2c7377, d806d5a85dcbe2a0f181b2f0f9f61ddfbefa1818 |
| linux-kernel: Kernel | >=6.13.0 <6.18.53, >=6.19.0 <7.2.7, >=6.7.0 <6.12.111, >=5.7.0 <6.6.158 | 6.18.53, 7.2.7, 6.12.111, 6.6.158 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket