CVE-2024-35962
netfilter: complete validation of user input
Check your servers for CVE-2024-35962
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-35962 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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;
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 0f038242b77ddfc505bf4163d4904c1abd2e74d6, before cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05 affected from 440e948cf0eff32cfe322dcbca3f2525354b159b, before 97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7 affected from 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5, before c760089aa98289b4b88a7ff5a62dd92845adf223 affected from 81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525, before 89242d9584c342cb83311b598d9e6b82572eadf8 affected from 58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018, before 562b7245131f6e9f1d280c8b5a8750f03edfc05c affected from 0c83842df40f86e529db6842231154772c20edcc, before 65acf6e0501ac8880a4f73980d01b5d27648b956
Other versions: unaffected
|
| Linux |
affected from 5.10.215, before 5.10.216 affected from 5.15.154, before 5.15.156 affected from 6.1.85, before 6.1.87 affected from 6.6.26, before 6.6.28 affected from 6.8.5, before 6.8.7
Other versions: unaffected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-35962 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-35962
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-35962
trivy image --scanners vuln IMAGE | grep CVE-2024-35962
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05 git.kernel.org
- https://git.kernel.org/stable/c/97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7 git.kernel.org
- https://git.kernel.org/stable/c/c760089aa98289b4b88a7ff5a62dd92845adf223 git.kernel.org
- https://git.kernel.org/stable/c/89242d9584c342cb83311b598d9e6b82572eadf8 git.kernel.org
- https://git.kernel.org/stable/c/562b7245131f6e9f1d280c8b5a8750f03edfc05c git.kernel.org
- https://git.kernel.org/stable/c/65acf6e0501ac8880a4f73980d01b5d27648b956 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-613116.html cert-portal.siemens.com
Source: the record CVE-2024-35962 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse