{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-99541", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-09-25T10:25:14.421Z", "datePublished": "2026-11-19T14:44:56.387Z", "dateUpdated": "2026-11-23T08:04:05.486Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-11-23T08:04:05.486Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()\n\nksmbd_validate_name_reconnect() indexes\nab_pathname[share->path_sz + 1] without checking that the path is\nlonger than share->path_sz + 1 (d_path() fills the buffer from the\nend). A durable fp is not bound to its original share, so a client\ncan preserve a file from a short-path share and reconnect it on a\nlong-path share, making strcmp() read past the PATH_MAX buffer -\nwith a long enough share path this oopses the kernel, and on a\nmapped page it also gives a byte-equality oracle on adjacent heap\n(the reconnect succeeds exactly when the out-of-bounds string\nequals the requested name). A same-share variant with the durable\nfp at the share root reads 1 byte past the buffer\n(strlen(ab_pathname) == share->path_sz).\n\nCheck before comparing: the path must be longer than share->path_sz,\nit must start with share->path, and the next character must be '/'.\nThe share root itself is accepted only for an empty name." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H", "baseScore": 8.3, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:N - The SMB2 CREATE Name and DH2C/DHnC durable-reconnect context arrive on TCP/445; ksmbd_conn_handler_loop() queues handle_ksmbd_work(), which calls smb2_open() and, for a lease reconnect, smb2_check_durable_oplock() then ksmbd_validate_name_reconnect(), whose strcmp uses that Name.\nAC:L - A client that can tree-connect opens the share root or a short-path file with a durable v2 lease (HANDLE_CACHING), drops its own TCP session so session_fd_check() keeps the fp, then sends CREATE/DH2C with a chosen Name; strcmp(&ab_pathname[share->path_sz+1], name) then runs deterministically.\nPR:L - smb2_check_user_session() accepts SMB2_CREATE only after a session reaches SMB2_SESSION_VALID, get_ksmbd_tcon() requires a tree connect, and smb2_check_durable_oplock() accepts the reconnect only when ksmbd_vfs_compare_durable_owner() matches sess->user.\nUI:N - The attacker alone sends the durable CREATE, closes that connection, and sends the reconnect CREATE on a new TCP session to port 445.\nS:U - The out-of-bounds strcmp and the fp->share_conf update in ksmbd_reopen_durable_fd() both occur in the host kernel that runs ksmbd, the same security authority as the SMB server.\nC:H - d_path() stores the NUL at the last byte of the kmalloc(PATH_MAX) buffer, so when strlen(ab_pathname) <= share->path_sz, strcmp(&ab_pathname[share->path_sz+1], name) reads past the object. Reconnect returns STATUS_SUCCESS only if those bytes equal the CREATE Name, an unbounded heap equality oracle.\nI:L - When the CREATE Name equals the path suffix at ab_pathname[share->path_sz+1], ksmbd_validate_name_reconnect() returns 0 without a share-prefix check, and ksmbd_reopen_durable_fd() points fp->share_conf at that other share, republishing only the caller's existing filp.\nA:H - strcmp walks from ab_pathname[share->path_sz+1] until a NUL. d_path() places that NUL at the last byte of the kmalloc(PATH_MAX) buffer, so a longer reconnect share path reads off the allocation and oopses, and the share-root case (strlen(ab_pathname)==share->path_sz) starts one byte past the object." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/smb/server/vfs_cache.c" ], "versions": [ { "version": "8df4bcdb0a4232192b2445256c39b787d58ef14d", "lessThan": "89b539970af70a003a475c1ec975b16f6b4dae69", "status": "affected", "versionType": "git" }, { "version": "c8efcc786146a951091588e5fa7e3c754850cb3c", "lessThan": "0129f7196a05a974bfb3ac4efd8380be651a51b9", "status": "affected", "versionType": "git" }, { "version": "c8efcc786146a951091588e5fa7e3c754850cb3c", "lessThan": "93cb902b0ca04c9dc28b38776f7a03503c84b7ad", "status": "affected", "versionType": "git" }, { "version": "c8efcc786146a951091588e5fa7e3c754850cb3c", "lessThan": "828c02c65e2b0541f0cce403e336b978f92b6dfa", "status": "affected", "versionType": "git" }, { "version": "c8efcc786146a951091588e5fa7e3c754850cb3c", "lessThan": "783a7fc454991544bf92268d8f2413af1a7c7eb8", "status": "affected", "versionType": "git" }, { "version": "6.6.32", "lessThan": "6.6.163", "status": "affected", "versionType": "semver" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/smb/server/vfs_cache.c" ], "versions": [ { "version": "6.9", "status": "affected" }, { "version": "0", "lessThan": "6.9", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.163", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.117", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.61", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.3.2", "lessThanOrEqual": "7.3.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.4-rc1", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.6.32", "versionEndExcluding": "6.6.163" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.9", "versionEndExcluding": "6.12.117" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.9", "versionEndExcluding": "6.18.61" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.9", "versionEndExcluding": "7.3.2" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.9", "versionEndExcluding": "7.4-rc1" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69" }, { "url": "https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9" }, { "url": "https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad" }, { "url": "https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa" }, { "url": "https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8" } ], "title": "ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()", "x_generator": { "engine": "bippy-1.2.0" } } } }