Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-46782 Overview
CVE-2024-46782 is a use-after-free vulnerability [CWE-416] in the Linux kernel's Identifier-Locator Addressing (ILA) subsystem for IPv6. The flaw resides in net/ipv6/ila/ila_xlat.c, where ila_xlat_exit_net() frees the rhashtable before calling nf_unregister_net_hooks(). This ordering allows netfilter hooks to access freed memory during network namespace teardown. The syzbot fuzzer discovered the issue, triggering a KASAN use-after-free read in ila_nf_input during rhashtable_lookup_fast. The fix reorders the cleanup logic into a pre_exit() method with proper synchronize_rcu() sequencing.
Critical Impact
A local attacker with low privileges can trigger memory corruption during network namespace cleanup, potentially leading to kernel memory disclosure, denial of service, or local privilege escalation.
Affected Products
- Linux Kernel versions prior to the patched stable releases
- Linux Kernel 6.11 release candidates rc1 through rc6
- Debian LTS distributions (addressed via DLA advisories in October 2024 and January 2025)
Discovery Timeline
- 2024-09-18 - CVE-2024-46782 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-46782
Vulnerability Analysis
The vulnerability affects the ILA translation subsystem, which rewrites IPv6 addresses to separate identifier and locator semantics. During network namespace teardown, ila_xlat_exit_net() destroys the per-namespace rhashtable used for ILA translation lookups. However, netfilter input hooks registered by the same subsystem remain active and can still invoke ila_nf_input(), which performs rhashtable_lookup_fast() against the freed table.
The KASAN report shows ksoftirqd processing a backlog packet that enters NF_HOOK and reaches ila_lookup_wildcards() after the backing table memory has been returned to the page allocator. The read of size 4 at the freed address occurs inside rht_key_hashfn(), confirming the dangling table reference.
Root Cause
The root cause is incorrect ordering of cleanup operations in the network namespace exit path. Resources that service packets must be unregistered before the data structures they consume are destroyed. The original code reversed this invariant, releasing the rhashtable while packet-processing hooks were still reachable. Additionally, no synchronize_rcu() call ensured in-flight softirq handlers completed before memory reclamation.
Attack Vector
Exploitation requires local access with the ability to create and destroy network namespaces, typically available to unprivileged users with user namespaces enabled. An attacker races namespace teardown against inbound IPv6 traffic processing to trigger the dangling access. Successful exploitation can corrupt kernel memory, leak sensitive data, or crash the system. The CWE-416 classification and the KASAN-confirmed read primitive align with established use-after-free exploitation patterns in the Linux networking stack.
The upstream patch moves hook unregistration into a pre_exit() network namespace operation, ensuring nf_unregister_net_hooks() runs first and that synchronize_rcu() drains in-flight readers before the rhashtable is freed. See the upstream commit for the exact code change.
Detection Methods for CVE-2024-46782
Indicators of Compromise
- KASAN use-after-free reports referencing rht_key_hashfn, __rhashtable_lookup, or ila_nf_input in kernel logs.
- Unexpected kernel oops or soft lockup entries in dmesg on hosts running IPv6 with ILA translation configured.
- Processes repeatedly creating and destroying network namespaces alongside IPv6 traffic generation.
Detection Strategies
- Enable KASAN on test and staging kernels to catch dangling rhashtable accesses triggered by namespace churn.
- Audit kernel versions against the fixed commits listed in the Linux stable tree advisories.
- Monitor syscall telemetry for abnormal use of unshare(CLONE_NEWNET) and setns() by unprivileged users.
Monitoring Recommendations
- Collect kernel ring buffer events via journald or auditd and alert on KASAN or BUG strings.
- Track package inventory to confirm Debian, Ubuntu, and RHEL kernels have received the ILA fix.
- Record container runtime events that create user and network namespaces at high frequency.
How to Mitigate CVE-2024-46782
Immediate Actions Required
- Apply the Linux stable kernel update that includes the ILA cleanup reordering patch.
- For Debian systems, install the kernel package shipped in the Debian LTS Announcement 2024-10 or Debian LTS Announcement 2025-01.
- Restrict creation of unprivileged user namespaces where operationally feasible.
Patch Information
The Linux kernel maintainers published the fix across multiple stable branches. The relevant commits are available in the kernel stable tree, including commit 031ae72825ce, commit 925c18a7cff9, and commit dcaf4e221682. The patch converts the ILA exit path to use a pre_exit() network namespace operation so netfilter hooks are torn down before the rhashtable is released.
Workarounds
- Unload the ila kernel module on systems that do not require Identifier-Locator Addressing: modprobe -r ila.
- Disable unprivileged user namespaces by setting kernel.unprivileged_userns_clone=0 to raise the bar for local exploitation.
- Blocklist the ila module via /etc/modprobe.d/ on hosts where IPv6 ILA is unused.
# Configuration example
# Prevent unprivileged users from creating user namespaces
echo 'kernel.unprivileged_userns_clone=0' | sudo tee /etc/sysctl.d/99-cve-2024-46782.conf
sudo sysctl --system
# Blocklist the ILA module if not required
echo 'blacklist ila' | sudo tee /etc/modprobe.d/blacklist-ila.conf
sudo modprobe -r ila || true
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

