smb: client: validate NT transaction response layout and offsets
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: smb: client: validate NT transaction response layout and offsets validate_ntransact() assumes that the response uses the fixed 18-word NT transaction layout. A different WordCount makes get_bcc() locate the byte count at a different offset from pSMBr->ByteCount, allowing the subsequent bounds checks to use inconsistent response boundaries. The function also turns the 32-bit ParameterOffset and DataOffset fields into pointers before checking their bounds. On a 32-bit client, a large offset can wrap the pointer below end_of_smb and pass the one-sided pointer comparison. The caller then dereferences the parameter pointer or copies from the data pointer. Require the expected WordCount before reading the byte count. Check each offset and count against the received SMB length as integers before forming either pointer. Use subtraction after validating the offset so that the range checks cannot overflow.
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 0a4b92c05ed02ad7abdd165823eaf4bbcb33ae5c, before 520b48753e3c54172a078e7e4b82aec83ae2e08d; from 0a4b92c05ed02ad7abdd165823eaf4bbcb33ae5c, before d55c0c19b0d1f5c0101f9aa3b60534b6d6e11052; from 0a4b92c05ed02ad7abdd165823eaf4bbcb33ae5c, before 83d0d5e0ca22233c75daf139ec0063b9d2ff1ac7 | 520b48753e3c54172a078e7e4b82aec83ae2e08d; d55c0c19b0d1f5c0101f9aa3b60534b6d6e11052; 83d0d5e0ca22233c75daf139ec0063b9d2ff1ac7 |
| Linux Linux | Software | 2.6.16 | not recorded |
The 8.1 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 | None | The attacker does not need an account or password. |
| 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.8 | 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 3 sources for this flaw, none tagged as a vendor patch.