CVE-2024-35962
netfilter: complete validation of user input
Mitigation
- Upgrade Linux to 65acf6e0501ac8880a4f73980d01b5d27648b956 or later.
- Upgrade Linux to 6.8.7 or later.
Who should check
- Anyone running Linux >= 0f038242b77ddfc505bf4163d4904c1abd2e74d6, < cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05; >= 440e948cf0eff32cfe322dcbca3f2525354b159b, < 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7; >= 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5, < c760089aa98289b4b88a7ff5a62dd92845adf223; >= 81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525, < 89242d9584c342cb83311b598d9e6b82572eadf8; >= 58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018, < 562b7245131f6e9f1d280c8b5a8750f03edfc05c; >= 0c83842df40f86e529db6842231154772c20edcc, < 65acf6e0501ac8880a4f73980d01b5d27648b956
- Anyone running Linux >= 5.10.215, < 5.10.216; >= 5.15.154, < 5.15.156; >= 6.1.85, < 6.1.87; >= 6.6.26, < 6.6.28; >= 6.8.5, < 6.8.7
Vulnerability facts
- Affected
- Linux >= 0f038242b77ddfc505bf4163d4904c1abd2e74d6, < cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05; >= 440e948cf0eff32cfe322dcbca3f2525354b159b, < 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7; >= 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5, < c760089aa98289b4b88a7ff5a62dd92845adf223; >= 81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525, < 89242d9584c342cb83311b598d9e6b82572eadf8; >= 58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018, < 562b7245131f6e9f1d280c8b5a8750f03edfc05c; >= 0c83842df40f86e529db6842231154772c20edcc, < 65acf6e0501ac8880a4f73980d01b5d27648b956; Linux >= 5.10.215, < 5.10.216; >= 5.15.154, < 5.15.156; >= 6.1.85, < 6.1.87; >= 6.6.26, < 6.6.28; >= 6.8.5, < 6.8.7
- Fixed in
- Linux 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7, Linux 89242d9584c342cb83311b598d9e6b82572eadf8, Linux 562b7245131f6e9f1d280c8b5a8750f03edfc05c, Linux 65acf6e0501ac8880a4f73980d01b5d27648b956, Linux 5.10.216, Linux 5.15.156, Linux 6.1.87, Linux 6.6.28, Linux 6.8.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.33% chance of exploitation in 30 days (percentile 19, 2026-11-26)
- Modified
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;
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0f038242b77ddfc505bf4163d4904c1abd2e74d6, < cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05; >= 440e948cf0eff32cfe322dcbca3f2525354b159b, < 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7; >= 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5, < c760089aa98289b4b88a7ff5a62dd92845adf223; >= 81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525, < 89242d9584c342cb83311b598d9e6b82572eadf8; >= 58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018, < 562b7245131f6e9f1d280c8b5a8750f03edfc05c; >= 0c83842df40f86e529db6842231154772c20edcc, < 65acf6e0501ac8880a4f73980d01b5d27648b956 | — | cvelist |
| Linux | >= 5.10.215, < 5.10.216; >= 5.15.154, < 5.15.156; >= 6.1.85, < 6.1.87; >= 6.6.26, < 6.6.28; >= 6.8.5, < 6.8.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-35962. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-35962.md Affected: Linux >= 0f038242b77ddfc505bf4163d4904c1abd2e74d6, < cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05; >= 440e948cf0eff32cfe322dcbca3f2525354b159b, < 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7; >= 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5, < c760089aa98289b4b88a7ff5a62dd92845adf223; >= 81d51b9b7c95e791ba3c1a2… Fixed in: Linux 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7, Linux 89242d9584c342cb83311b598d9e6b82572eadf8, Linux 562b7245131f6e9f1d280c8b5a8750f03edfc05c, Linux 65acf6e0501ac8880a4f73980d01b5d27648b956, Linux 5.10.216, Linux 5.15.156, Linux 6.1.87, Linux 6.6.28, Linux 6.8.7 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05
- https://git.kernel.org/stable/c/97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7
- https://git.kernel.org/stable/c/c760089aa98289b4b88a7ff5a62dd92845adf223
- https://git.kernel.org/stable/c/89242d9584c342cb83311b598d9e6b82572eadf8
- https://git.kernel.org/stable/c/562b7245131f6e9f1d280c8b5a8750f03edfc05c
- https://git.kernel.org/stable/c/65acf6e0501ac8880a4f73980d01b5d27648b956
FAQ
Is CVE-2024-35962 being exploited?
There is no confirmed exploitation: CVE-2024-35962 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-35962?
High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-35962?
Linux >= 0f038242b77ddfc505bf4163d4904c1abd2e74d6, < cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05; >= 440e948cf0eff32cfe322dcbca3f2525354b159b, < 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7; >= 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5, < c760089aa98289b4b88a7ff5a62dd92845adf223; >= 81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525, < 89242d9584c342cb83311b598d9e6b82572eadf8; >= 58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018, < 562b7245131f6e9f1d280c8b5a8750f03edfc05c; >= 0c83842df40f86e529db6842231154772c20edcc, < 65acf6e0501ac8880a4f73980d01b5d27648b956; Linux >= 5.10.215, < 5.10.216; >= 5.15.154, < 5.15.156; >= 6.1.85, < 6.1.87; >= 6.6.26, < 6.6.28; >= 6.8.5, < 6.8.7.
Is there a fix for CVE-2024-35962?
Yes. Fixed in Linux 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7, Linux 89242d9584c342cb83311b598d9e6b82572eadf8, Linux 562b7245131f6e9f1d280c8b5a8750f03edfc05c, Linux 65acf6e0501ac8880a4f73980d01b5d27648b956, Linux 5.10.216, Linux 5.15.156, Linux 6.1.87, Linux 6.6.28, Linux 6.8.7. Upgrade Linux to 65acf6e0501ac8880a4f73980d01b5d27648b956 or later. Upgrade Linux to 6.8.7 or later.
How do I check if I'm affected by CVE-2024-35962?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.