Skip to content
7.1 High

CVE-2024-35962 In the Linux kernel, the following vulnerability has been resolved: netfilter: complete validation of user input In my…

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 products and versions

Product Affected versions Fixed in
Linux 6.8 6.8.5 → < 6.8.7 6.8.7
Linux 6.6 6.6.26 → < 6.6.28 6.6.28
Linux 6.1 6.1.85 → < 6.1.87 6.1.87
Linux 5.15 5.15.154 → < 5.15.156 5.15.156
Linux 5.10 5.10.215 → < 5.10.216 5.10.216
RUGGEDCOM RST2428P 3.1 earliest → < 3.1 3.1
SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family Versions not published
SCALANCE XCM-/XRM-/XCH-/XRH-300 family 3.1 earliest → < 3.1 3.1
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 1.1 earliest → < 1.1.1 1.1.1

References

Timeline

  1. Published
  2. Last modified
The 18283 CVEs of Linux →
Track this CVE