Skip to main content
Vulnerability Database/CVE-2026-98555

CVE-2026-98555: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98555 is a use-after-free vulnerability in the Linux kernel LLC component that causes memory corruption and potential system crashes. This article covers technical details, affected versions, and mitigation.

Published:

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-2026-98555 Overview

CVE-2026-98555 is a use-after-free (UAF) and memory leak vulnerability in the Linux kernel's Logical Link Control (LLC) subsystem. The flaw resides in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(), where a failed llc_mac_hdr_init() call triggers kfree_skb(skb) instead of kfree_skb(nskb). This mistake leaks the newly allocated nskb, reads from the freed skb via LLC_I_GET_NR(pdu), and double-frees skb after llc_conn_state_process() releases its reference. Two additional functions, llc_sap_action_send_xid_r() and llc_sap_action_send_test_r(), leak nskb when llc_mac_hdr_init() returns an error.

Critical Impact

The flaw combines a use-after-free, a double-free, and memory leaks in a kernel networking path, which can lead to kernel memory corruption and local privilege escalation on systems with the LLC subsystem loaded.

Affected Products

  • Linux kernel (upstream net/llc subsystem)
  • Stable kernel branches patched via the referenced commits
  • Distributions shipping affected kernels prior to backport

Discovery Timeline

  • 2026-10-18 - CVE-2026-98555 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98555

Vulnerability Analysis

The vulnerability affects the Linux kernel LLC (IEEE 802.2 Logical Link Control) implementation. In llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(), the code allocates a new socket buffer (nskb) and calls llc_mac_hdr_init() to populate its MAC header. If that call fails, the error path incorrectly frees the original skb rather than the newly allocated nskb.

Three distinct memory safety issues follow from this single mistake. First, nskb is leaked because it is never released. Second, the code reads from the already-freed skb through LLC_I_GET_NR(pdu), producing a use-after-free [CWE-416]. Third, when llc_conn_state_process() subsequently drops its reference to skb, the buffer is freed a second time, resulting in a double-free [CWE-415].

Two related SAP action handlers, llc_sap_action_send_xid_r() and llc_sap_action_send_test_r(), exhibit only the memory leak variant, releasing nskb improperly on error.

Root Cause

The root cause is incorrect variable selection in the error-handling path. Developers wrote kfree_skb(skb) where kfree_skb(nskb) was required after a failed header initialization. The LLC code paths assume successful header construction and did not account for cleanup ordering between the caller-owned skb and the locally allocated nskb.

Attack Vector

Exploitation requires the ability to drive LLC traffic through an affected kernel. A local attacker with access to raw socket capabilities, or an adjacent attacker on the same Layer 2 network sending crafted LLC frames, can trigger the error path in llc_mac_hdr_init(). Repeatedly reaching the freed buffer read and double-free primitives can corrupt the slab allocator state, enabling kernel memory disclosure or privilege escalation.

Technical details are published in the upstream fix commits, including Kernel Commit 060f827 and Kernel Commit fec0fe6.

Detection Methods for CVE-2026-98555

Indicators of Compromise

  • Kernel oops or panic traces referencing llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr, llc_sap_action_send_xid_r, or llc_sap_action_send_test_r.
  • KASAN reports flagging use-after-free or double-free in the net/llc subsystem.
  • Unexpected slab corruption warnings in dmesg on hosts with the llc module loaded.

Detection Strategies

  • Audit loaded kernel modules for llc and llc2 on servers that do not require legacy IEEE 802.2 protocols.
  • Enable KASAN in test environments to surface the UAF when fuzzing the LLC socket interface with syzkaller-style harnesses.
  • Correlate AF_LLC socket creation events with uid 0 or CAP_NET_RAW-bearing processes through kernel audit logging.

Monitoring Recommendations

  • Forward dmesg and /var/log/kern.log to a central log store and alert on crash signatures in LLC functions.
  • Monitor for processes opening socket(AF_LLC, ...) on hosts where this is not expected.
  • Track module load events for llc and llc2 via auditd rules on the init_module and finit_module syscalls.

How to Mitigate CVE-2026-98555

Immediate Actions Required

  • Apply the upstream kernel patches referenced below and reboot affected hosts.
  • Blacklist the llc and llc2 kernel modules on systems that do not require IEEE 802.2 connectivity.
  • Restrict CAP_NET_RAW and raw socket creation to trusted service accounts only.

Patch Information

The fix frees nskb in all three error paths. Upstream commits include Kernel Commit 060f827, Kernel Commit 41dcae8, Kernel Commit 72f9dd5, Kernel Commit 8b855b6, Kernel Commit b859ba1, Kernel Commit cb3528a, Kernel Commit d360b31, and Kernel Commit fec0fe6. Consult your distribution's security tracker for backported package versions.

Workarounds

  • Add install llc /bin/true and install llc2 /bin/true to a /etc/modprobe.d/ configuration file to prevent module loading.
  • Deny unprivileged user namespace creation where feasible to reduce reachability of raw socket paths.
  • Enforce seccomp filters that block socket(AF_LLC, ...) for workloads that do not require LLC.
bash
# Blacklist the LLC modules to remove the vulnerable code path
echo 'install llc /bin/true'  | sudo tee /etc/modprobe.d/blacklist-llc.conf
echo 'install llc2 /bin/true' | sudo tee -a /etc/modprobe.d/blacklist-llc.conf

# Verify the modules are not currently loaded
lsmod | grep -E '^llc(2)?\b' || echo 'llc modules not loaded'

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.