{"api_version":"1","generated_at":"2026-11-19T23:50:34+00:00","cve":"CVE-2026-99526","urls":{"html":"https://cve.report/CVE-2026-99526","api":"https://cve.report/api/cve/CVE-2026-99526.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99526","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99526"},"summary":{"title":"smb: client: fix use-after-free infoleak via the readdir resume name","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix use-after-free infoleak via the readdir resume name\n\nCIFSFindNext() copies the resume name that cifs_save_resume_key()\nrecorded from the last entry of the previous response into its request;\npsrch_inf->presume_name points into the response buffer that entry came\nfrom, and nothing ever clears it. find_cifs_entry() records a new\nname only from a response with a usable last entry, and cifs_readdir()\nonly from an entry it walks to, so a response that carries no entries\nand leaves last_entry NULL, because CIFSFindFirst() or CIFSFindNext()\nrejected LastNameOffset, refreshes neither and presume_name keeps\npointing into the previous response. That buffer has already been\nreleased: by CIFSFindNext() before it installs the new response, or by\nfind_cifs_entry() when it rewinds the search, which does not drop the\nname either and can then fail in initiate_cifs_search() before a new\nresponse replaces it. The next CIFSFindNext() then copies up to\nPATH_MAX - 1 bytes of the resume name out of the released buffer into\nits request and sends them to the server: a use-after-free read\nthat leaks kernel memory to a malicious or compromised server, which\ncan provoke it with a single FindNext response that carries no entries\nand a LastNameOffset above CIFSMaxBufSize, which is all the existing\ncheck rejects.\n\nWith KASAN enabled, a server that answers a listing that way gives:\n\n CIFS: VFS: ignoring corrupt resume name\n ==================================================================\n BUG: KASAN: slab-use-after-free in CIFSFindNext+0x8ca/0x14c0\n Read of size 4080 at addr ffff88807c823f98 by task ls/83\n\n CPU: 0 UID: 0 PID: 83 Comm: ls Tainted: G    B               7.3.0-rc4-00457-gf14572c203d5 #69 PREEMPT(lazy)\n Tainted: [B]=BAD_PAGE\n Call Trace:\n  <TASK>\n  kasan_report+0xdf/0x1a0\n  kasan_check_range+0x10f/0x1e0\n  __asan_memcpy+0x23/0x60\n  CIFSFindNext+0x8ca/0x14c0\n  cifs_readdir+0xf51/0x29c0\n  iterate_dir+0x1c0/0x570\n  __x64_sys_getdents64+0x133/0x270\n  do_syscall_64+0x109/0x5d0\n  entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  </TASK>\n\n Allocated by task 83 on cpu 1 at 13.497119s:\n  cifs_buf_get+0x36/0x90\n  smb_init+0x4f/0x110\n  CIFSFindNext+0xf7/0x14c0\n  cifs_readdir+0xf51/0x29c0\n\n Freed by task 83 on cpu 0 at 13.584018s:\n  cifs_buf_release+0x41/0x80\n  CIFSFindNext+0xfce/0x14c0\n  cifs_readdir+0xf51/0x29c0\n\n The buggy address is located 16280 bytes inside of\n  freed 16588-byte region [ffff88807c820000, ffff88807c8240cc)\n ==================================================================\n\nThe same memcpy() first reads past the end of that object while it is\nstill live, a slab-out-of-bounds read that the following patches\nbound; that is the taint the report above carries.\n\nSMB1 is not negotiated by default; reaching this code requires an\nexplicit vers=1.0 mount.\n\nClear presume_name and resume_name_len whenever a new response is\ninstalled and when the rewind path releases the search buffer, so that\nthe name never outlives the buffer it points into, and reset\nresume_key with them, since it was taken from the same entry and would\notherwise be sent with an empty name. A response without a usable\nlast entry then continues the search with an empty resume name rather\nthan a stale one; CIFSFindNext() skips the copy of a zero-length name\nso that it never runs on the NULL pointer.\n\nThe next patch in the series leaves last_entry NULL for a response\nthat carries no entries, and bounds LastNameOffset against the\nreceived response rather than against CIFSMaxBufSize. Responses that\nare given a last entry today then take the path fixed here, so that\npatch must not be applied without this one.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-19 15:18:08","updated_at":"2026-11-19 15:18:08"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/8c8f8029fe07634b626e96472b584b29a33993b8","name":"https://git.kernel.org/stable/c/8c8f8029fe07634b626e96472b584b29a33993b8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/59131dd72f62b198fc9ea1489ad9d3573154f684","name":"https://git.kernel.org/stable/c/59131dd72f62b198fc9ea1489ad9d3573154f684","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a3481ed0aea2fc41a6d892a586b6eb7a97662034","name":"https://git.kernel.org/stable/c/a3481ed0aea2fc41a6d892a586b6eb7a97662034","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15","name":"https://git.kernel.org/stable/c/6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99526","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99526","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 8c8f8029fe07634b626e96472b584b29a33993b8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 a3481ed0aea2fc41a6d892a586b6eb7a97662034 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 59131dd72f62b198fc9ea1489ad9d3573154f684 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/smb/client/cifssmb.c","fs/smb/client/readdir.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"8c8f8029fe07634b626e96472b584b29a33993b8","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"a3481ed0aea2fc41a6d892a586b6eb7a97662034","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"59131dd72f62b198fc9ea1489ad9d3573154f684","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/client/cifssmb.c","fs/smb/client/readdir.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.12"},{"lessThan":"2.6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix use-after-free infoleak via the readdir resume name\n\nCIFSFindNext() copies the resume name that cifs_save_resume_key()\nrecorded from the last entry of the previous response into its request;\npsrch_inf->presume_name points into the response buffer that entry came\nfrom, and nothing ever clears it. find_cifs_entry() records a new\nname only from a response with a usable last entry, and cifs_readdir()\nonly from an entry it walks to, so a response that carries no entries\nand leaves last_entry NULL, because CIFSFindFirst() or CIFSFindNext()\nrejected LastNameOffset, refreshes neither and presume_name keeps\npointing into the previous response. That buffer has already been\nreleased: by CIFSFindNext() before it installs the new response, or by\nfind_cifs_entry() when it rewinds the search, which does not drop the\nname either and can then fail in initiate_cifs_search() before a new\nresponse replaces it. The next CIFSFindNext() then copies up to\nPATH_MAX - 1 bytes of the resume name out of the released buffer into\nits request and sends them to the server: a use-after-free read\nthat leaks kernel memory to a malicious or compromised server, which\ncan provoke it with a single FindNext response that carries no entries\nand a LastNameOffset above CIFSMaxBufSize, which is all the existing\ncheck rejects.\n\nWith KASAN enabled, a server that answers a listing that way gives:\n\n CIFS: VFS: ignoring corrupt resume name\n ==================================================================\n BUG: KASAN: slab-use-after-free in CIFSFindNext+0x8ca/0x14c0\n Read of size 4080 at addr ffff88807c823f98 by task ls/83\n\n CPU: 0 UID: 0 PID: 83 Comm: ls Tainted: G    B               7.3.0-rc4-00457-gf14572c203d5 #69 PREEMPT(lazy)\n Tainted: [B]=BAD_PAGE\n Call Trace:\n  <TASK>\n  kasan_report+0xdf/0x1a0\n  kasan_check_range+0x10f/0x1e0\n  __asan_memcpy+0x23/0x60\n  CIFSFindNext+0x8ca/0x14c0\n  cifs_readdir+0xf51/0x29c0\n  iterate_dir+0x1c0/0x570\n  __x64_sys_getdents64+0x133/0x270\n  do_syscall_64+0x109/0x5d0\n  entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  </TASK>\n\n Allocated by task 83 on cpu 1 at 13.497119s:\n  cifs_buf_get+0x36/0x90\n  smb_init+0x4f/0x110\n  CIFSFindNext+0xf7/0x14c0\n  cifs_readdir+0xf51/0x29c0\n\n Freed by task 83 on cpu 0 at 13.584018s:\n  cifs_buf_release+0x41/0x80\n  CIFSFindNext+0xfce/0x14c0\n  cifs_readdir+0xf51/0x29c0\n\n The buggy address is located 16280 bytes inside of\n  freed 16588-byte region [ffff88807c820000, ffff88807c8240cc)\n ==================================================================\n\nThe same memcpy() first reads past the end of that object while it is\nstill live, a slab-out-of-bounds read that the following patches\nbound; that is the taint the report above carries.\n\nSMB1 is not negotiated by default; reaching this code requires an\nexplicit vers=1.0 mount.\n\nClear presume_name and resume_name_len whenever a new response is\ninstalled and when the rewind path releases the search buffer, so that\nthe name never outlives the buffer it points into, and reset\nresume_key with them, since it was taken from the same entry and would\notherwise be sent with an empty name. A response without a usable\nlast entry then continues the search with an empty resume name rather\nthan a stale one; CIFSFindNext() skips the copy of a zero-length name\nso that it never runs on the NULL pointer.\n\nThe next patch in the series leaves last_entry NULL for a response\nthat carries no entries, and bounds LastNameOffset against the\nreceived response rather than against CIFSMaxBufSize. Responses that\nare given a last entry today then take the path fixed here, so that\npatch must not be applied without this one."}],"providerMetadata":{"dateUpdated":"2026-11-19T14:44:38.249Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/8c8f8029fe07634b626e96472b584b29a33993b8"},{"url":"https://git.kernel.org/stable/c/6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15"},{"url":"https://git.kernel.org/stable/c/a3481ed0aea2fc41a6d892a586b6eb7a97662034"},{"url":"https://git.kernel.org/stable/c/59131dd72f62b198fc9ea1489ad9d3573154f684"}],"title":"smb: client: fix use-after-free infoleak via the readdir resume name","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99526","datePublished":"2026-11-19T14:44:38.249Z","dateReserved":"2026-09-25T10:25:14.420Z","dateUpdated":"2026-11-19T14:44:38.249Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-19 15:18:08","lastModifiedDate":"2026-11-19 15:18:08","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99526","Ordinal":"1","Title":"smb: client: fix use-after-free infoleak via the readdir resume ","CVE":"CVE-2026-99526","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99526","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix use-after-free infoleak via the readdir resume name\n\nCIFSFindNext() copies the resume name that cifs_save_resume_key()\nrecorded from the last entry of the previous response into its request;\npsrch_inf->presume_name points into the response buffer that entry came\nfrom, and nothing ever clears it. find_cifs_entry() records a new\nname only from a response with a usable last entry, and cifs_readdir()\nonly from an entry it walks to, so a response that carries no entries\nand leaves last_entry NULL, because CIFSFindFirst() or CIFSFindNext()\nrejected LastNameOffset, refreshes neither and presume_name keeps\npointing into the previous response. That buffer has already been\nreleased: by CIFSFindNext() before it installs the new response, or by\nfind_cifs_entry() when it rewinds the search, which does not drop the\nname either and can then fail in initiate_cifs_search() before a new\nresponse replaces it. The next CIFSFindNext() then copies up to\nPATH_MAX - 1 bytes of the resume name out of the released buffer into\nits request and sends them to the server: a use-after-free read\nthat leaks kernel memory to a malicious or compromised server, which\ncan provoke it with a single FindNext response that carries no entries\nand a LastNameOffset above CIFSMaxBufSize, which is all the existing\ncheck rejects.\n\nWith KASAN enabled, a server that answers a listing that way gives:\n\n CIFS: VFS: ignoring corrupt resume name\n ==================================================================\n BUG: KASAN: slab-use-after-free in CIFSFindNext+0x8ca/0x14c0\n Read of size 4080 at addr ffff88807c823f98 by task ls/83\n\n CPU: 0 UID: 0 PID: 83 Comm: ls Tainted: G    B               7.3.0-rc4-00457-gf14572c203d5 #69 PREEMPT(lazy)\n Tainted: [B]=BAD_PAGE\n Call Trace:\n  <TASK>\n  kasan_report+0xdf/0x1a0\n  kasan_check_range+0x10f/0x1e0\n  __asan_memcpy+0x23/0x60\n  CIFSFindNext+0x8ca/0x14c0\n  cifs_readdir+0xf51/0x29c0\n  iterate_dir+0x1c0/0x570\n  __x64_sys_getdents64+0x133/0x270\n  do_syscall_64+0x109/0x5d0\n  entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  </TASK>\n\n Allocated by task 83 on cpu 1 at 13.497119s:\n  cifs_buf_get+0x36/0x90\n  smb_init+0x4f/0x110\n  CIFSFindNext+0xf7/0x14c0\n  cifs_readdir+0xf51/0x29c0\n\n Freed by task 83 on cpu 0 at 13.584018s:\n  cifs_buf_release+0x41/0x80\n  CIFSFindNext+0xfce/0x14c0\n  cifs_readdir+0xf51/0x29c0\n\n The buggy address is located 16280 bytes inside of\n  freed 16588-byte region [ffff88807c820000, ffff88807c8240cc)\n ==================================================================\n\nThe same memcpy() first reads past the end of that object while it is\nstill live, a slab-out-of-bounds read that the following patches\nbound; that is the taint the report above carries.\n\nSMB1 is not negotiated by default; reaching this code requires an\nexplicit vers=1.0 mount.\n\nClear presume_name and resume_name_len whenever a new response is\ninstalled and when the rewind path releases the search buffer, so that\nthe name never outlives the buffer it points into, and reset\nresume_key with them, since it was taken from the same entry and would\notherwise be sent with an empty name. A response without a usable\nlast entry then continues the search with an empty resume name rather\nthan a stale one; CIFSFindNext() skips the copy of a zero-length name\nso that it never runs on the NULL pointer.\n\nThe next patch in the series leaves last_entry NULL for a response\nthat carries no entries, and bounds LastNameOffset against the\nreceived response rather than against CIFSMaxBufSize. Responses that\nare given a last entry today then take the path fixed here, so that\npatch must not be applied without this one.","Type":"Description","Title":"smb: client: fix use-after-free infoleak via the readdir resume "}]}}}