xfs: validate attr entry pointer before field access
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e99120b5944a16d0bc27e52b33de78bcdaaabf5c, Kernel 03a12253dd2a036545bdb0110a4e0b8dc70f8e7c, Kernel 0f82586741e39926542f621bafa424e237a04fa4 and 14 more.
In the Linux kernel, the following vulnerability has been resolved: xfs: validate attr entry pointer before field access xfs_attr3_leaf_verify_entry() accesses lentry/rentry fields (namelen, valuelen) before checking if the entry pointer itself is within bounds. If nameidx is crafted to point near the end of the buffer, these field accesses can read out-of-bounds before the bounds check at name_end > buf_end is performed. Add explicit bounds checks for entry pointers before accessing their fields. Use offsetof() to check that the start of the flexible array member (nameval/name) is within bounds, which ensures all preceding fields are safe to access.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=c84760659dcf237902d4cc997cd5f55cb3b2807f <e99120b5944a16d0bc27e52b33de78bcdaaabf5c, >=c84760659dcf237902d4cc997cd5f55cb3b2807f <03a12253dd2a036545bdb0110a4e0b8dc70f8e7c, >=c84760659dcf237902d4cc997cd5f55cb3b2807f <0f82586741e39926542f621bafa424e237a04fa4, >=c84760659dcf237902d4cc997cd5f55cb3b2807f <134d82a2b5e3eba3ebf58753a1387b22f26ca1de, >=c84760659dcf237902d4cc997cd5f55cb3b2807f <184c1a80421a5b5ddcd262e47980ce2e67fee211, >=c84760659dcf237902d4cc997cd5f55cb3b2807f <98a42bb9d60d42898c3494de351a1bf508348cde, >=c84760659dcf237902d4cc997cd5f55cb3b2807f <9f92e749fc08b7ff3d9da190c4d1b2273745b282, >=c84760659dcf237902d4cc997cd5f55cb3b2807f <b7eea80be25f3334f131d52982b3131aba77b97d, >=c84760659dcf237902d4cc997cd5f55cb3b2807f <c35da2bac6f7cb9a9be73f188b4fcc324615c327, =5.5 | e99120b5944a16d0bc27e52b33de78bcdaaabf5c, 03a12253dd2a036545bdb0110a4e0b8dc70f8e7c, 0f82586741e39926542f621bafa424e237a04fa4, 134d82a2b5e3eba3ebf58753a1387b22f26ca1de, 184c1a80421a5b5ddcd262e47980ce2e67fee211, 98a42bb9d60d42898c3494de351a1bf508348cde, 9f92e749fc08b7ff3d9da190c4d1b2273745b282, b7eea80be25f3334f131d52982b3131aba77b97d, c35da2bac6f7cb9a9be73f188b4fcc324615c327 |
| linux-kernel: Kernel | >=5.16.0 <6.1.185, >=5.5.0 <5.10.267, >=6.13.0 <6.18.47, >=6.19.0 <7.1.11, >=6.2.0 <6.6.154, >=6.7.0 <6.12.106, >=7.2.0 <7.2.1, >=5.11.0 <5.15.218 | 6.1.185, 5.10.267, 6.18.47, 7.1.11, 6.6.154, 6.12.106, 7.2.1, 5.15.218 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket