Linux
bpf: Guard conntrack opts error writes
In the Linux kernel, the following vulnerability has been resolved: bpf: Guard conntrack opts error writes The conntrack lookup and allocation kfuncs take an opts pointer together with an opts__sz argument. The verifier checks only the memory range described by opts__sz, but the wrappers unconditionally write opts->error whenever the internal lookup or allocation helper returns an error. For an invalid size smaller than the end of opts->error, that write can land outside the verifier-checked range. Keep returning NULL for invalid arguments, but only report the error through opts->error when the supplied size includes the field. This preserves error reporting for the supported 12-byte and 16-byte layouts, and for other invalid sizes that still include opts->error.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b4c2b9593a1c4c3a718370e34af28e817fd5e5c6, < 6fd973def4d6cb89aaf7e9b6bc26cac977f6da13
- >= b4c2b9593a1c4c3a718370e34af28e817fd5e5c6, < 669bc3b345712112d3f033a1953f5a10b15e7c65
- >= b4c2b9593a1c4c3a718370e34af28e817fd5e5c6, < 63d95c6bbd6fc0e411404188306a1fea456300b0
- >= b4c2b9593a1c4c3a718370e34af28e817fd5e5c6, < 453f4f1e90de55b6bc297936031b68bef93f2e28
- >= b4c2b9593a1c4c3a718370e34af28e817fd5e5c6, < dd74c80203842a21b2ebb9f70d1260d9aa20fa05
- >= b4c2b9593a1c4c3a718370e34af28e817fd5e5c6, < 6f6183a39533d727deaa5061cadae6dd9e6744d0
Fixed in 6fd973def4d6cb89aaf7e9b6bc26cac977f6da13, 669bc3b345712112d3f033a1953f5a10b15e7c65, 63d95c6bbd6fc0e411404188306a1fea456300b0, 453f4f1e90de55b6bc297936031b68bef93f2e28, dd74c80203842a21b2ebb9f70d1260d9aa20fa05, 6f6183a39533d727deaa5061cadae6dd9e6744d0
- 5.18
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.1.5, 7.2
Mitigation
Upgrade Linux to 6fd973def4d6cb89aaf7e9b6bc26cac977f6da13 or 669bc3b345712112d3f033a1953f5a10b15e7c65 or 63d95c6bbd6fc0e411404188306a1fea456300b0 or 453f4f1e90de55b6bc297936031b68bef93f2e28 or dd74c80203842a21b2ebb9f70d1260d9aa20fa05 or 6f6183a39533d727deaa5061cadae6dd9e6744d0 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.