{"id":"CVE-2026-99540","aliases":[],"cve":{"records":[{"id":"CVE-2026-99540","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.421Z","published":"2026-11-19T14:44:55.292Z","modified":"2026-11-22T11:08:49.639Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-22T11:08:49.639Z"}],"references":[{"url":"https://git.kernel.org/stable/c/32934b13b1a63c86d2fa68df0bfb28c51ce38879","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/93566781118cdff874023d5ca4e7b8054baaec31","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/b62ef8cfec9351662e42cbf7da2d743068699bba","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/171df27077fb49b4af2c53ad2cedcd0e39664fe8","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"ksmbd: fix parent dentry lifetime in directory enumeration","titleSource":"Linux","descriptionSource":"Linux","description":"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.","score":8.8,"severity":"high","published":"2026-11-19T14:44:55.292Z","modified":"2026-11-22T11:08:49.639Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","status":"affected","lessThan":"32934b13b1a63c86d2fa68df0bfb28c51ce38879","versionType":"git"},{"version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","status":"affected","lessThan":"93566781118cdff874023d5ca4e7b8054baaec31","versionType":"git"},{"version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","status":"affected","lessThan":"b62ef8cfec9351662e42cbf7da2d743068699bba","versionType":"git"},{"version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","status":"affected","lessThan":"171df27077fb49b4af2c53ad2cedcd0e39664fe8","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99540"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99540"}],"remediation":[],"references":["https://git.kernel.org/stable/c/32934b13b1a63c86d2fa68df0bfb28c51ce38879","https://git.kernel.org/stable/c/93566781118cdff874023d5ca4e7b8054baaec31","https://git.kernel.org/stable/c/b62ef8cfec9351662e42cbf7da2d743068699bba","https://git.kernel.org/stable/c/171df27077fb49b4af2c53ad2cedcd0e39664fe8"],"sources":[{"name":"CVE","id":"CVE-2026-99540","modified":"2026-11-22T11:08:49.639Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99540"}],"assessments":[{"source":"Linux","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8}],"sourceAffected":[],"observedAt":"2026-11-22T11:22:04.389Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T13:00:31.692Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-22T02:00:31.805Z","attemptedAt":"2026-11-22T02:00:31.805Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-22T01:35:32.921Z","attemptedAt":"2026-11-22T01:35:32.921Z"},{"source":"EUVD","status":"refresh-failed","attemptedAt":"2026-11-22T01:15:34.664Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-22T00:50:32.337Z","attemptedAt":"2026-11-22T00:50:32.337Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-99540","url":"https://www.first.org/epss/","probability":0.00168,"percentile":0.0619,"date":"2026-11-21","checkedAt":"2026-11-22T00:50:32.337Z"},{"source":"GitHub Advisory Database","id":"GHSA-75r5-7cvh-h27p","url":"https://github.com/advisories/GHSA-75r5-7cvh-h27p","modified":"2026-11-19T15:31:30Z","checkedAt":"2026-11-22T01:35:32.921Z"},{"source":"NVD","id":"CVE-2026-99540","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99540","modified":"2026-11-19T15:18:10.040","checkedAt":"2026-11-22T02:00:31.805Z"}],"aiSummary":null}