cvelo
P2 · HighCVSS 7.5

smb: client: pin DFS superblock in iterator callback

  • CVE-2026-97562
  • GHSA-38c4-cggv-4792
  • EUVD-2026-86870

Description

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.

Text from the CVE.org record.

Affected

  • Linux

    • 5.7
    • before 5.7: not affected
    • from 6.1.193 up to 6.1.*: not affected
    • from 6.6.158 up to 6.6.*: not affected
    • from 6.12.111 up to 6.12.*: not affected
    • from 6.18.53 up to 6.18.*: not affected
    • from 7.2.7 up to 7.2.*: not affected
    • from 7.3 onwards: not affected

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.