CVE-2024-35962
Last modified
CVE-2024-35962 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: netfilter: complete validation of user input In my recent commit, I missed that do_replace() handlers use copy_from_sockptr() (which I fixed), followed by unsafe copy_from_sockptr_offset() calls. In all functions, we can perform the @optlen validation before even calling xt_alloc_table_info() with the following check: if ((u64)optlen < (u64)tmp.size + sizeof(tmp)) return -EINVAL;. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: complete validation of user input In my recent commit, I missed that do_replace() handlers use copy_from_sockptr() (which I fixed), followed by unsafe copy_from_sockptr_offset() calls. In all functions, we can perform the @optlen validation before even calling xt_alloc_table_info() with the following check: if ((u64)optlen < (u64)tmp.size + sizeof(tmp)) return -EINVAL;
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.15.154, < 5.15.156 | — |
| Linux | Linux Kernel | >= 6.1.85, < 6.1.87 | — |
| Linux | Linux Kernel | >= 6.6.26, < 6.6.28 | — |
| Linux | Linux Kernel | >= 6.8.5, < 6.8.7 | — |
| Linux | Linux Kernel | 5.10.215 | — |
| Linux | Linux Kernel | 6.9 | Rc3 |
| Debian | Debian Linux | 10.0 | — |
References
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlMailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-35962?
How severe is CVE-2024-35962?
How do I fix CVE-2024-35962?
Are you affected by CVE-2024-35962?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
