CVE-2024-35962

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-35962
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35962.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35962
Downstream
Related
Published
2024-05-20T10:15:11Z
Modified
2025-08-09T20:01:27Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

netfilter: complete validation of user input

In my recent commit, I missed that doreplace() handlers use copyfromsockptr() (which I fixed), followed by unsafe copyfromsockptroffset() calls.

In all functions, we can perform the @optlen validation before even calling xtalloctable_info() with the following check:

if ((u64)optlen < (u64)tmp.size + sizeof(tmp)) return -EINVAL;

References

Affected packages