Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected b4c2b9593a1c4c3a718370e34af28e817fd5e5c6 before 669bc3b345712112d3f033a1953f5a10b15e7c65; affected b4c2b9593a1c4c3a718370e34af28e817fd5e5c6 before 63d95c6bbd6fc0e411404188306a1fea456300b0; affected b4c2b9593a1c4c3a718370e34af28e817fd5e5c6 before 453f4f1e90de55b6bc297936031b68bef93f2e28; affected b4c2b9593a1c4c3a718370e34af28e817fd5e5c6 before dd74c80203842a21b2ebb9f70d1260d9aa20fa05; affected b4c2b9593a1c4c3a718370e34af28e817fd5e5c6 before 6f6183a39533d727deaa5061cadae6dd9e6744d0 |
| Linux / Linux | affected 5.18; unaffected 0 before 5.18; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.57 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/669bc3b345712112d3f033a1953f5a10b15e7c65
- https://git.kernel.org/stable/c/63d95c6bbd6fc0e411404188306a1fea456300b0
- https://git.kernel.org/stable/c/453f4f1e90de55b6bc297936031b68bef93f2e28
- https://git.kernel.org/stable/c/dd74c80203842a21b2ebb9f70d1260d9aa20fa05
- https://git.kernel.org/stable/c/6f6183a39533d727deaa5061cadae6dd9e6744d0
ADP enrichment
No English description supplied.
No references supplied.