xfs: reject remote xattr entries with an out-of-range value length
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: xfs: reject remote xattr entries with an out-of-range value length xfs_attr3_leaf_verify_entry() validates a remote attribute entry's name but never bounds its on-disk value length (xfs_attr_leaf_name_remote. valuelen, a __be32). A crafted leaf with valuelen = 0x80000000 passes the verifier and the CRC. That length is later assigned into the signed int args->rmtvaluelen (xfs_attr3_leaf_getvalue), becoming negative, which slips past the signed -ERANGE check in xfs_attr_copy_value(); a getxattr() with a small buffer then memcpy()s a full remote block into the small kvalue buffer (xfs_attr_rmtval_copyout) -- a heap out-of-bounds write with attacker-controlled content, from an unprivileged getxattr(2) on a mounted crafted image. Reject remote entries whose value length exceeds XFS_XATTR_SIZE_MAX in the leaf verifier, so the malicious block is rejected at read time.
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 c84760659dcf237902d4cc997cd5f55cb3b2807f, before cb6dcf2e5a339bf83683186652f7149e0a4c03d9; from c84760659dcf237902d4cc997cd5f55cb3b2807f, before e16b8078e804cc190e7f03bdfc0569595b541238; from c84760659dcf237902d4cc997cd5f55cb3b2807f, before 1bec5e735e51d840268ed43b3829b3b0b7ff2953; from c84760659dcf237902d4cc997cd5f55cb3b2807f, before a15646a4d5a2c15b9cd809cd531a412501349624; from c84760659dcf237902d4cc997cd5f55cb3b2807f, before 56b701b3c272f143bb5f6a346bfbb1fe28ee14b1; from c84760659dcf237902d4cc997cd5f55cb3b2807f, before 97b85a593188f63e133883525c9159f77e660197; and 2 more | cb6dcf2e5a339bf83683186652f7149e0a4c03d9; e16b8078e804cc190e7f03bdfc0569595b541238; 1bec5e735e51d840268ed43b3829b3b0b7ff2953; a15646a4d5a2c15b9cd809cd531a412501349624 |
| Linux Linux | Software | 5.5 | not recorded |
The 7.8 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 | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| 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 | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | 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.