CVE-2026-99379: smb: client: validate SMB1 EA list bounds before parsing
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
smb: client: validate SMB1 EA list bounds before parsing
CIFSSMBQAllEAs() checks the server-provided EA list length by adding it to the response pointer. On 32-bit systems, a positive length can wrap the pointer and pass the comparison. The parser then walks outside the received response while reading the next FEA header.
A response with a list length of 0x40000000 reproduces this as a native i386 page fault and kernel panic from listxattr() against an SMB1 server.
Check that the EA list starts within the SMB byte area before reading its header. Keep its length unsigned and compare it with the bytes left in the response without pointer addition.
SMB1 is not negotiated by default and requires an explicit vers=1.0 mount.
The Linux kernel CVE team has assigned CVE-2026-99379 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.118 with commit 25b2cf78709cffcc04b2c576e7150d46b0cecef0 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.64 with commit ccdd05f4573951164edd0390bb995fe6d2072441 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3.2 with commit 8eec99e61b79bb5f698754dda8e8a1ff7e4ed7ff Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.4-rc1 with commit ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99379
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/smb/client/cifssmb.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
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