{"vuln_id":"CVE-2026-99540","aliases":["CVE-2026-100080","CVE-2026-100081","CVE-2026-100082","CVE-2026-89866","CVE-2026-92499","CVE-2026-98176","CVE-2026-98177","CVE-2026-98180","CVE-2026-98228","CVE-2026-98408","CVE-2026-98439","CVE-2026-98449","CVE-2026-98466","CVE-2026-98674","CVE-2026-98682","CVE-2026-98683","CVE-2026-98684","CVE-2026-98685","CVE-2026-98714","CVE-2026-98715","CVE-2026-98786","CVE-2026-98853","CVE-2026-98863","CVE-2026-98920","CVE-2026-98978","CVE-2026-98989","CVE-2026-98996","CVE-2026-99021","CVE-2026-99026","CVE-2026-99076","CVE-2026-99086","CVE-2026-99087","CVE-2026-99109","CVE-2026-99122","CVE-2026-99146","CVE-2026-99172","CVE-2026-99270","CVE-2026-99271","CVE-2026-99273","CVE-2026-99274","CVE-2026-99281","CVE-2026-99282","CVE-2026-99283","CVE-2026-99286","CVE-2026-99287","CVE-2026-99288","CVE-2026-99290","CVE-2026-99292","CVE-2026-99295","CVE-2026-99296"],"description":"kernel: kernel: Denial of Service in ksmbd via use-after-free during directory enumeration","published_at":"2026-11-19T14:44:55Z","modified_at":"2026-11-22T11:16:55.553000Z","first_seen_at":"2026-11-21T19:15:15.262723Z","severity":"high","severity_source":"nvd","cvss_score":8.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-825"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00168,"epss_percentile":0.0619,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99540"},"matched_alias":null,"items":[{"id":11734,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-99540: In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix parent dentry lifetime in directory enumeration ksmbd_populate_dot_dotdot_entrie…","summary":"In the Linux kernel, the following vulnerability has been resolved:  ksmbd: fix parent dentry lifetime in directory enumeration  ksmbd_populate_dot_dotdot_entries() builds the \"..\" entry from the open directory's d_parent and passes that pointer to ksmbd_vfs_fill_dentry_attrs() without taking a reference. That pointer is only valid while the directory stays under this parent. If a concurrent rename moves the directory elsewhere, the old parent loses its last reference; a following rmdir then turns it into a negative dentry with d_inode cleared, and after the RCU grace period the dentry itself is freed. The worker still holds the raw pointer and dereferences d_inode through vfs_getattr() and vfs_getxattr().  A remote SMB client, authenticated or guest, triggers this by listing a directory while that directory is moved under a new parent and the old parent is deleted. It can be done by the client itself with write access or by other concurrent writers, triggering null-ptr-deref and slab-use-after-free on a KASAN build.    KASAN: null-ptr-deref in range       [0x0000000000000000-0x0000000000000007]   Workqueue: ksmbd-io handle_ksmbd_work   RIP: 0010:xattr_permission+0x9d/0x160   Call Trace:    vfs_getxattr+0x9c/0x1b0    ksmbd_vfs_getxattr+0x82/0x100    ksmbd_vfs_get_dos_attrib_xattr+0x7f/0x130    ksmbd_vfs_fill_dentry_attrs+0x435/0x650    ksmbd_populate_dot_dotdot_entries+0x25e/0x630    smb2_query_dir+0xcf9/0x1a20    handle_ksmbd_work+0x5f1/0x1c80    process_one_work+0x90b/0x19d0  Fix by using the dentry reference counting APIs: take the parent with dget_parent(), take a matching dget() on \".\", and dput() the dentry once ksmbd_vfs_fill_dentry_attrs() has returned or the pattern does not match.\n\nAffected: Debian:12:linux, Debian:12:linux-6.12, Debian:13:linux, Debian:14:linux\n\nFixed in: 6.12.117-1, 7.3.3-1, 6.12.117-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-99540","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-99540","published_at":"2026-11-19T15:18:10.040000Z","updated_at":"2026-11-22T01:00:12.759548Z","fetched_at":"2026-11-22T08:08:55.104006Z","severity":"high","cvss_score":8.8,"epss":0.00168,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":"12:linux","vuln_id":"CVE-2026-99540","vuln_ids":["CVE-2026-100080","CVE-2026-100081","CVE-2026-100082","CVE-2026-89866","CVE-2026-92499","CVE-2026-98176","CVE-2026-98177","CVE-2026-98180","CVE-2026-98228","CVE-2026-98408","CVE-2026-98439","CVE-2026-98449","CVE-2026-98466","CVE-2026-98674","CVE-2026-98682","CVE-2026-98683","CVE-2026-98684","CVE-2026-98685","CVE-2026-98714","CVE-2026-98715","CVE-2026-98786","CVE-2026-98853","CVE-2026-98863","CVE-2026-98920","CVE-2026-98978","CVE-2026-98989","CVE-2026-98996","CVE-2026-99021","CVE-2026-99026","CVE-2026-99076","CVE-2026-99086","CVE-2026-99087","CVE-2026-99109","CVE-2026-99122","CVE-2026-99146","CVE-2026-99172","CVE-2026-99270","CVE-2026-99271","CVE-2026-99273","CVE-2026-99274","CVE-2026-99281","CVE-2026-99282","CVE-2026-99283","CVE-2026-99286","CVE-2026-99287","CVE-2026-99288","CVE-2026-99290","CVE-2026-99292","CVE-2026-99295","CVE-2026-99296","CVE-2026-99540","DEBIAN-CVE-2026-99540"],"tags":["osv","debian","fix-available"],"cluster_id":881,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11734","html":"https://vulnwatch.ve1ve2.com/item/11734"}},{"id":8872,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-99540: In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix parent dentry lifetime in directory enumeration ksmbd_populate_dot_dotdot_entrie…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix parent dentry lifetime in directory enumeration\n\nksmbd_populate_dot_dotdot_entries() builds the \"..\" entry from\nthe open directory's d_parent and passes that pointer to\nksmbd_vfs_fill_dentry_attrs() without taking a reference. That pointer\nis only valid while the directory stays under this parent. If a\nconcurrent rename moves the directory elsewhere, the old parent loses\nits last reference; a following rmdir then turns it into a negative\ndentry with d_inode cleared, and after the RCU grace period the dentry\nitself is freed. The worker still holds the raw pointer and\ndereferences d_inode through vfs_getattr() and vfs_getxattr().\n\nA remote SMB client, authenticated or guest, triggers this by listing\na directory while that directory is moved under a new parent and the\nold parent is deleted. It can be done by the client itself with write\naccess or by other concurrent writers, triggering null-ptr-deref and\nslab-use-after-free on a KASAN build.\n\n  KASAN: null-ptr-deref in range\n      [0x0000000000000000-0x0000000000000007]\n  Workqueue: ksmbd-io handle_ksmbd_work\n  RIP: 0010:xattr_permission+0x9d/0x160\n  Call Trace:\n   vfs_getxattr+0x9c/0x1b0\n   ksmbd_vfs_getxattr+0x82/0x100\n   ksmbd_vfs_get_dos_attrib_xattr+0x7f/0x130\n   ksmbd_vfs_fill_dentry_attrs+0x435/0x650\n   ksmbd_populate_dot_dotdot_entries+0x25e/0x630\n   smb2_query_dir+0xcf9/0x1a20\n   handle_ksmbd_work+0x5f1/0x1c80\n   process_one_work+0x90b/0x19d0\n\nFix by using the dentry reference counting APIs: take the parent with\ndget_parent(), take a matching dget() on \".\", and dput() the dentry\nonce ksmbd_vfs_fill_dentry_attrs() has returned or the pattern does\nnot match.\n\nReferences:\nhttps://git.kernel.org/stable/c/171df27077fb49b4af2c53ad2cedcd0e39664fe8\nhttps://git.kernel.org/stable/c/32934b13b1a63c86d2fa68df0bfb28c51ce38879\nhttps://git.kernel.org/stable/c/93566781118cdff874023d5ca4e7b8054baaec31\nhttps://git.kernel.org/stable/c/b62ef8cfec9351662e42cbf7da2d743068699bba","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99540","published_at":"2026-11-19T15:18:10.040000Z","updated_at":"2026-11-22T11:16:55.553000Z","fetched_at":"2026-11-21T19:15:31.484553Z","severity":"high","cvss_score":8.8,"epss":0.00168,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":null,"vuln_id":"CVE-2026-99540","vuln_ids":["CVE-2026-100080","CVE-2026-100081","CVE-2026-100082","CVE-2026-89866","CVE-2026-92499","CVE-2026-98176","CVE-2026-98177","CVE-2026-98180","CVE-2026-98228","CVE-2026-98408","CVE-2026-98439","CVE-2026-98449","CVE-2026-98466","CVE-2026-98674","CVE-2026-98682","CVE-2026-98683","CVE-2026-98684","CVE-2026-98685","CVE-2026-98714","CVE-2026-98715","CVE-2026-98786","CVE-2026-98853","CVE-2026-98863","CVE-2026-98920","CVE-2026-98978","CVE-2026-98989","CVE-2026-98996","CVE-2026-99021","CVE-2026-99026","CVE-2026-99076","CVE-2026-99086","CVE-2026-99087","CVE-2026-99109","CVE-2026-99122","CVE-2026-99146","CVE-2026-99172","CVE-2026-99270","CVE-2026-99271","CVE-2026-99273","CVE-2026-99274","CVE-2026-99281","CVE-2026-99282","CVE-2026-99283","CVE-2026-99286","CVE-2026-99287","CVE-2026-99288","CVE-2026-99290","CVE-2026-99292","CVE-2026-99295","CVE-2026-99296","CVE-2026-99540"],"tags":[],"cluster_id":881,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8872","html":"https://vulnwatch.ve1ve2.com/item/8872"}},{"id":1142,"source":{"id":"redhat","name":"Red Hat Security Data API"},"title":"CVE-2026-99540: kernel: kernel: Denial of Service in ksmbd via use-after-free during directory enumeration","summary":"kernel: kernel: Denial of Service in ksmbd via use-after-free during directory enumeration","url":"https://access.redhat.com/security/cve/cve-2026-99540","published_at":"2026-11-19T14:44:55Z","updated_at":null,"fetched_at":"2026-11-21T19:15:08.893879Z","severity":"high","cvss_score":8.8,"epss":0.00168,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"redhat","product":null,"vuln_id":"CVE-2026-99540","vuln_ids":["CVE-2026-100080","CVE-2026-100081","CVE-2026-100082","CVE-2026-89866","CVE-2026-92499","CVE-2026-98176","CVE-2026-98177","CVE-2026-98180","CVE-2026-98228","CVE-2026-98408","CVE-2026-98439","CVE-2026-98449","CVE-2026-98466","CVE-2026-98674","CVE-2026-98682","CVE-2026-98683","CVE-2026-98684","CVE-2026-98685","CVE-2026-98714","CVE-2026-98715","CVE-2026-98786","CVE-2026-98853","CVE-2026-98863","CVE-2026-98920","CVE-2026-98978","CVE-2026-98989","CVE-2026-98996","CVE-2026-99021","CVE-2026-99026","CVE-2026-99076","CVE-2026-99086","CVE-2026-99087","CVE-2026-99109","CVE-2026-99122","CVE-2026-99146","CVE-2026-99172","CVE-2026-99270","CVE-2026-99271","CVE-2026-99273","CVE-2026-99274","CVE-2026-99281","CVE-2026-99282","CVE-2026-99283","CVE-2026-99286","CVE-2026-99287","CVE-2026-99288","CVE-2026-99290","CVE-2026-99292","CVE-2026-99295","CVE-2026-99296","CVE-2026-99540"],"tags":["redhat"],"cluster_id":881,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/1142","html":"https://vulnwatch.ve1ve2.com/item/1142"}}]}