CVE-2024-35962
published high CVSS 3.1 · 7.1netfilter: complete validation of user input
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0f038242b77ddfc505bf4163d4904c1abd2e74d6 to < cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05 · 440e948cf0eff32cfe322dcbca3f2525354b159b to < 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7 · 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5 to < c760089aa98289b4b88a7ff5a62dd92845adf223 · 81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525 to < 89242d9584c342cb83311b598d9e6b82572eadf8 · 58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018 to < 562b7245131f6e9f1d280c8b5a8750f03edfc05c · 0c83842df40f86e529db6842231154772c20edcc to < 65acf6e0501ac8880a4f73980d01b5d27648b956 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.10.215 to < 5.10.216 · 5.15.154 to < 5.15.156 · 6.1.85 to < 6.1.87 · 6.6.26 to < 6.6.28 · 6.8.5 to < 6.8.7 · Other versions: unaffected | Affected | Not stated | Linux |
| Siemens | — | RUGGEDCOM RST2428P0 to < V3.1 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0 and later · Other versions: unknown | Unaffected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-067 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | bpftool | Advisory build | 7.3.0-427.33.1.el9_4 | ALSA-2024:5928 |
| Debian | buster | linux-5.10 | Advisory build | 5.10.216-1~deb10u1 | DLA-3842-1 |
Show 101 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SCALANCE XCM-/XRM-/XCH-/XRH-300 family0 to < V3.1 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 to < V1.1.1 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.3.0-427.33.1.el9_4 | ELSA-2024-5928 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.3.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | perfaarch64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | perfx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | python3-perfaarch64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | python3-perfx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | rtlax86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | rvx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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;
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:L - The vulnerability is reached through the local `setsockopt(SOL_IP, IPT_SO_SET_REPLACE, ...)` syscall on a locally-opened socket, via `nf_setsockopt()` → `do_ipt_set_ctl()` → `do_replace()`. No network packet or remote peer data reaches this code path. AC:L - The attacker fully controls `tmp.size` and `optlen` and triggers the oversized `memcpy()` deterministically on every call — no race, no memory-layout luck, and no retry needed. The kernel-sockptr precondition is satisfied by any attached cgroup/setsockopt BPF program (even a no-op one, since `ctx.optlen` defaults to the original `optlen`), which is standard in container environments running Cilium and similar tooling on default `CONFIG_CGROUP_BPF=y` kernels. PR:L - `do_ipt_set_ctl()` gates on `ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)`, which any unprivileged user obtains with `unshare -Urn`; entering a new user/net namespace leaves cgroup membership intact so the BPF sockopt hook still applies. No real root in the initial namespace is required. UI:N - The attacker performs the entire sequence — socket creation, namespace setup, and the malformed setsockopt call — with no action by any other user or victim process. S:U - The out-of-bounds read occurs in kernel slab memory and its impact is confined to the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - This is an unbounded out-of-bounds read — up to `XT_MAX_TABLE_SIZE` (512 MB) copied from a ≤PAGE_SIZE slab object into the netfilter table buffer, far beyond a "few bytes". With heap grooming to keep the resulting `ipt_entry` chain valid through `translate_table()`, the harvested kernel heap contents (pointers, keys, credentials, defeating KASLR) can be read back via `getsockopt(IPT_SO_GET_ENTRIES)`. I:N - The defect is purely an over-read; the destination buffer is correctly sized by `xt_alloc_table_info(tmp.size)`, so no memory outside an allocation is written and no control-flow or data corruption primitive is produced. A:H - A large attacker-chosen `tmp.size` makes the kernel `memcpy()` run hundreds of megabytes past the end of a small slab object, reliably hitting unmapped memory and causing a page fault in kernel context — an oops/panic — and the crash is trivially repeatable by any unprivileged local user.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0f038242b77ddfc505bf4163d4904c1abd2e74d6 to < cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05 (affected · git)440e948cf0eff32cfe322dcbca3f2525354b159b to < 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7 (affected · git)18aae2cb87e5faa9c5bd865260ceadac60d5a6c5 to < c760089aa98289b4b88a7ff5a62dd92845adf223 (affected · git)81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525 to < 89242d9584c342cb83311b598d9e6b82572eadf8 (affected · git)58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018 to < 562b7245131f6e9f1d280c8b5a8750f03edfc05c (affected · git)0c83842df40f86e529db6842231154772c20edcc to < 65acf6e0501ac8880a4f73980d01b5d27648b956 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.10.215 to < 5.10.216 (affected · semver)5.15.154 to < 5.15.156 (affected · semver)6.1.85 to < 6.1.87 (affected · semver)6.6.26 to < 6.6.28 (affected · semver)6.8.5 to < 6.8.7 (affected · semver)Default: unaffected | Linux · cna |
| Siemens | RUGGEDCOM RST2428P | 0 to < V3.1 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 and later (unaffected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | 0 to < V3.1 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 to < V1.1.1 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
0No weakness assertions.
References
9- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://cert-portal.siemens.com/productcert/html/ssa-613116.html
- https://git.kernel.org/stable/c/562b7245131f6e9f1d280c8b5a8750f03edfc05c
- https://git.kernel.org/stable/c/65acf6e0501ac8880a4f73980d01b5d27648b956
- https://git.kernel.org/stable/c/89242d9584c342cb83311b598d9e6b82572eadf8
- https://git.kernel.org/stable/c/97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7
- https://git.kernel.org/stable/c/c760089aa98289b4b88a7ff5a62dd92845adf223
- https://git.kernel.org/stable/c/cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
Provider assertions
4Linux · cna
netfilter: complete validation of user input
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 19e28201c1c98dc4bd78c239d50afd3f908907c75dbc8813958dae5bbb292f0c
- Ingested
- 15 Oct 2026, 13:09:23 UTC
- Source record
- Official CVE record