CVE-2024-35962: netfilter: complete validation of user input

Published May 20, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netfilter: complete validation of user input

In my recent commit, I missed that doreplace() handlers use copyfromsockptr() (which I fixed), followed by unsafe copyfromsockptroffset() calls.

In all functions, we can perform the @optlen validation before even calling xtalloctableinfo() with the following check:

if ((u64)optlen < (u64)tmp.size + sizeof(tmp)) return -EINVAL;

Other sources

In the Linux kernel, the following vulnerability has been resolved:

netfilter: complete validation of user input

The Linux kernel CVE team has assigned CVE-2024-35962 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052020-CVE-2024-35962-e5ce@gregkh/T

Red Hat

Affected Software

12 affected componentsFixes available
redhat/kernel<5.10.216
5.10.216
redhat/kernel<5.15.156
5.15.156
redhat/kernel<6.1.87
6.1.87
redhat/kernel<6.6.28
6.6.28
redhat/kernel<6.8.7
6.8.7
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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.10.216
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.15.156
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.1.87
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.6.28
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.8.7

Event History

May 20, 2024
CVE Published
via MITRE·09:41 AM
Data Sourced
via MITRE·09:41 AM
DescriptionSeverity
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Red Hat·04:57 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-35962?

CVE-2024-35962 has been classified as a critical severity vulnerability.

2

How do I fix CVE-2024-35962?

To fix CVE-2024-35962, update your Linux kernel to the latest versions listed in the advisory, specifically 5.10.216, 5.15.156, 6.1.87, 6.6.28, or 6.8.7.

3

What components are affected by CVE-2024-35962?

CVE-2024-35962 affects the netfilter component of the Linux kernel.

4

What are the risks of not fixing CVE-2024-35962?

Not fixing CVE-2024-35962 may lead to potential privilege escalation and system compromise.

5

Is CVE-2024-35962 exploitable remotely?

CVE-2024-35962 can potentially be exploited remotely if conditions allow unauthorized access to the affected kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203