PT-2024-29822 · Linux+6 · Linux Kernel+6

Takahiro Kawahara

·

Published

2024-07-31

·

Updated

2025-09-29

·

CVE-2024-42270

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.50
Description The vulnerability is related to a null pointer dereference in the iptable nat table init() function. This issue can be triggered when iptables-restore is called at boot time, causing a kernel NULL pointer dereference. The problem arises because iptable nat table init() is exposed to user space before the kernel fully initializes netns. In the small race window, a user could call iptable nat table init() that accesses net generic(net, iptable nat net id), which is available only after registering iptable nat net ops. To fix this, register pernet subsys() should be called before xt register template().
Recommendations To resolve this issue, update the Linux kernel to version 6.6.50 or later. If updating is not possible, consider disabling the iptable nat table init() function until a patch is available. However, this might have significant implications for network functionality and should be carefully considered.
Note: The provided information does not specify the exact versions affected beyond mentioning version 6.6.50 as a fix. Therefore, it is recommended to update to this version or later to ensure the vulnerability is resolved.

Exploit

Fix

NULL Pointer Dereference

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
ALT-PU-2024-11524
ALT-PU-2024-11855
ALT-PU-2024-11863
ALT-PU-2024-13121
ALT-PU-2024-13979
ALT-PU-2024-14046
AZL-47814
AZL-47850
BDU:2025-01404
CVE-2024-42270
DLA-4008-1
MGASA-2024-0309
MGASA-2024-0310
OESA-2024-2076
SUSE-SU-2024:3194-1
SUSE-SU-2024:3195-1
SUSE-SU-2024:3383-1
SUSE-SU-2025:20044-1
SUSE-SU-2025:20047-1
USN-7004-1
USN-7009-1
USN-7009-2
USN-7100-1
USN-7100-2
USN-7144-1
USN-7154-1
USN-7154-2
USN-7155-1
USN-7156-1

Affected Products

Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu