CVE-2024-35962

netfilter: complete validation of user input

MEDIUM
5.5
CVSS Score
Published: May 20, 2024 at 09:41 AM UTC
Updated: October 15, 2026 at 01:18 AM UTC
8 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 TM MFP

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15.154 ≤ v < 5.15.1566.1.85 ≤ v < 6.1.876.6.26 ≤ v < 6.6.286.8.5 ≤ v < 6.8.70c83842df40f86e529db6842231154772c20edcc0f038242b77ddfc505bf4163d4904c1abd2e74d618aae2cb87e5faa9c5bd865260ceadac60d5a6c5440e948cf0eff32cfe322dcbca3f2525354b159b5.10.2155.15.15458f2bfb789e6bd3bc24a2c9c1580f3c67aec30186.1.856.6.266.8.56.96.9 rc381d51b9b7c95e791ba3c1a2dd77920a9d3b3f525
Vendor states this is fixed in 562b7245131f6e9f1d280c8b5a8750f03edfc05c (fixed)
Vendor states this is fixed in 65acf6e0501ac8880a4f73980d01b5d27648b956 (fixed)
Vendor states this is fixed in 89242d9584c342cb83311b598d9e6b82572eadf8 (fixed)
Vendor states this is fixed in 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7 (fixed)
Vendor states this is fixed in c760089aa98289b4b88a7ff5a62dd92845adf223 (fixed)
Vendor states this is fixed in cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05 (fixed)
Affected range stops below 5.10.216, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.15.156, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.1.87, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.6.28, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.8.7, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/562b7245131f6e9f1d280c8b5a8750f03edfc05c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/65acf6e0501ac8880a4f73980d01b5d27648b956
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/89242d9584c342cb83311b598d9e6b82572eadf8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c760089aa98289b4b88a7ff5a62dd92845adf223
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05
Mailing ListThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
Source: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
https://cert-portal.siemens.com/productcert/html/ssa-265688.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card