smb: client: validate SMB1 EA list bounds before parsing
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 3c3679ef16b5e763809f91eb0cde20ee17b6f5a3; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e4a360cb4d0a3be7e2812caece32cd03f72c7745; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before fe9262a2a4c5e12d6bd6237bfc7addf778f97435; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before cb6df4e56561f7f59f90293d67ba93018fd9a5c6; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 25b2cf78709cffcc04b2c576e7150d46b0cecef0; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ccdd05f4573951164edd0390bb995fe6d2072441; and 2 more | 3c3679ef16b5e763809f91eb0cde20ee17b6f5a3; e4a360cb4d0a3be7e2812caece32cd03f72c7745; fe9262a2a4c5e12d6bd6237bfc7addf778f97435; cb6df4e56561f7f59f90293d67ba93018fd9a5c6 |
| Linux Linux | Software | 2.6.12 | not recorded |
The 7.3 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | Required | A person has to do something first, such as open a file or visit a page. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 2.1 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.2 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.