smb: client: validate SMB1 EA list bounds before parsing
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel fe9262a2a4c5e12d6bd6237bfc7addf778f97435, Kernel 25b2cf78709cffcc04b2c576e7150d46b0cecef0, Kernel 3c3679ef16b5e763809f91eb0cde20ee17b6f5a3 and 12 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <fe9262a2a4c5e12d6bd6237bfc7addf778f97435, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <25b2cf78709cffcc04b2c576e7150d46b0cecef0, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3c3679ef16b5e763809f91eb0cde20ee17b6f5a3, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <8eec99e61b79bb5f698754dda8e8a1ff7e4ed7ff, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <cb6df4e56561f7f59f90293d67ba93018fd9a5c6, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ccdd05f4573951164edd0390bb995fe6d2072441, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e4a360cb4d0a3be7e2812caece32cd03f72c7745, =2.6.12 | fe9262a2a4c5e12d6bd6237bfc7addf778f97435, 25b2cf78709cffcc04b2c576e7150d46b0cecef0, 3c3679ef16b5e763809f91eb0cde20ee17b6f5a3, 8eec99e61b79bb5f698754dda8e8a1ff7e4ed7ff, cb6df4e56561f7f59f90293d67ba93018fd9a5c6, ccdd05f4573951164edd0390bb995fe6d2072441, ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d, e4a360cb4d0a3be7e2812caece32cd03f72c7745 |
| linux-kernel: Kernel | >=5.11.0 <5.15.226, >=5.16.0 <6.1.193, >=6.13.0 <6.18.64, >=6.19.0 <7.3.2, >=6.2.0 <6.6.163, >=6.7.0 <6.12.118, >=2.6.12 <5.10.275 | 5.15.226, 6.1.193, 6.18.64, 7.3.2, 6.6.163, 6.12.118, 5.10.275 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket