{"id":"CVE-2026-99379","state":"PUBLISHED","title":"smb: client: validate SMB1 EA list bounds before parsing","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: validate SMB1 EA list bounds before parsing\n\nCIFSSMBQAllEAs() checks the server-provided EA list length by adding it\nto the response pointer. On 32-bit systems, a positive length can wrap\nthe pointer and pass the comparison. The parser then walks outside the\nreceived response while reading the next FEA header.\n\nA response with a list length of 0x40000000 reproduces this as a native\ni386 page fault and kernel panic from listxattr() against an SMB1\nserver.\n\nCheck that the EA list starts within the SMB byte area before reading\nits header. Keep its length unsigned and compare it with the bytes left\nin the response without pointer addition.\n\nSMB1 is not negotiated by default and requires an explicit vers=1.0\nmount.","publishedAt":"2026-11-19T14:23:19.747Z","updatedAt":"2026-11-22T11:07:55.534Z","severity":{"score":7.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"25b2cf78709cffcc04b2c576e7150d46b0cecef0","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ccdd05f4573951164edd0390bb995fe6d2072441","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"8eec99e61b79bb5f698754dda8e8a1ff7e4ed7ff","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifssmb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","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"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifssmb.c"]}],"references":["https://git.kernel.org/stable/c/25b2cf78709cffcc04b2c576e7150d46b0cecef0","https://git.kernel.org/stable/c/ccdd05f4573951164edd0390bb995fe6d2072441","https://git.kernel.org/stable/c/8eec99e61b79bb5f698754dda8e8a1ff7e4ed7ff","https://git.kernel.org/stable/c/ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d"],"weaknesses":[],"ingestedAt":"2026-11-22T11:18:06.032Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99379.json","commit":"247cc9beefd85903834df0592e88a44f4d599223","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99379","state":"PUBLISHED","datePublished":"2026-11-19T14:23:19.747Z","dateUpdated":"2026-11-22T11:07:55.534Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.411Z"},"containers":{"cna":{"title":"smb: client: validate SMB1 EA list bounds before parsing","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: validate SMB1 EA list bounds before parsing\n\nCIFSSMBQAllEAs() checks the server-provided EA list length by adding it\nto the response pointer. On 32-bit systems, a positive length can wrap\nthe pointer and pass the comparison. The parser then walks outside the\nreceived response while reading the next FEA header.\n\nA response with a list length of 0x40000000 reproduces this as a native\ni386 page fault and kernel panic from listxattr() against an SMB1\nserver.\n\nCheck that the EA list starts within the SMB byte area before reading\nits header. Keep its length unsigned and compare it with the bytes left\nin the response without pointer addition.\n\nSMB1 is not negotiated by default and requires an explicit vers=1.0\nmount."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"25b2cf78709cffcc04b2c576e7150d46b0cecef0","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ccdd05f4573951164edd0390bb995fe6d2072441","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"8eec99e61b79bb5f698754dda8e8a1ff7e4ed7ff","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifssmb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","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"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifssmb.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/25b2cf78709cffcc04b2c576e7150d46b0cecef0"},{"url":"https://git.kernel.org/stable/c/ccdd05f4573951164edd0390bb995fe6d2072441"},{"url":"https://git.kernel.org/stable/c/8eec99e61b79bb5f698754dda8e8a1ff7e4ed7ff"},{"url":"https://git.kernel.org/stable/c/ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","baseScore":7.3,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The value that defeats the check is fealist.list_len in the SMB1 TRANS2_QUERY_PATH_INFORMATION response at level SMB_INFO_QUERY_ALL_EAS. CIFSSMBQAllEAs() reads it after SendReceive(); cifs_listxattr, cifs_xattr_get, and the reparse branch of cifs_query_path_info are what issue that query on the share's TCP session.\nAC:L - The server chooses list_len 0x40000000. On the default 32-bit 3G/1G split that value stays positive in the signed int and ea_response_data+list_len wraps below end_of_smb, so the old comparison accepts it. The walk then faults or copies deterministically; the attacker does not win a race or wait for a hardware fault.\nPR:L - Reading the leaked value needs only a local uid that can getxattr a file on the mount. Default file_mode/dir_mode are 0755, and cifs_xattr_get has no capability check. The same user supplies the malformed TRANS2 reply from the server and needs no credential on the client; mounting itself is the separate interaction below.\nUI:R - cifs_parse_smb_version installs smb1_operations only for an explicit vers=1.0 mount, and cifs_fs_type does not set FS_USERNS_MOUNT, so an unprivileged user cannot create that mount. Another user with CAP_SYS_ADMIN has to mount the attacker's share before getxattr or listxattr will send SMB_INFO_QUERY_ALL_EAS.\nS:U - The out-of-bounds walk in CIFSSMBQAllEAs and the page fault it produces stay in the kernel that owns the cifs mount. No guest-to-host or other security-boundary crossing is involved.\nC:H - Once the wrapped list_len is accepted, a FEA whose name matches the getxattr request makes CIFSSMBQAllEAs memcpy value_len bytes (an attacker-chosen __u16, up to 65535 and only capped by the caller buffer) from past the SMB bcc into EAData and return that length. do_getxattr then copy_to_user's the uncleared tail of the cifs_request slab object.\nI:N - The only stores in the FEA loop are into the caller EAData buffer, and value_len larger than buf_size returns -ERANGE before memcpy. The walk does not write through a pointer taken from the response or overflow a kernel allocation; the fault reported for list_len 0x40000000 is on the read.\nA:H - listxattr passes ea_name NULL, so the loop keeps consuming the claimed 0x40000000-byte list and reads FEA headers past the response. The fix commit records the resulting native i386 page fault and kernel panic from listxattr() against that SMB1 reply."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-22T11:07:55.534Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}