CVE-2026-98555: llc: fix skb UAF and leaks on llc_mac_hdr_init() failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
llc: fix skb UAF and leaks on llc_mac_hdr_init() failure
In llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(), if llc_mac_hdr_init() fails, kfree_skb(skb) is called instead of kfree_skb(nskb). This leaks the newly allocated nskb, reads from the freed skb via LLC_I_GET_NR(pdu), and double-frees skb when llc_conn_state_process() drops its reference.
In llc_sap_action_send_xid_r() and llc_sap_action_send_test_r(), nskb is leaked if llc_mac_hdr_init() returns an error.
Free nskb in all three error paths.
The Linux kernel CVE team has assigned CVE-2026-98555 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.271 with commit fec0fe6838a7f45175667701fb51abb23a6ffb1e Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.222 with commit b859ba18b5a1067f71db5618c6a4a70d55fa308b Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.189 with commit 8b855b645841b5a04e20339a22bb6d593c9b790d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.158 with commit d360b31f1a3666579422872aa7d1a751e20b76f9 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.112 with commit 060f827aa3dc47939ee306da715cd6700d129616 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.55 with commit 41dcae82bece9f106b4dff0ee777bba8d157c8a8 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.9 with commit cb3528ad8bb46fa6252f5d14ced7febddc18515d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc5 with commit 72f9dd522f8d6c5a00be9695c7bb74631eb5069e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98555
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/llc/llc_c_ac.c net/llc/llc_s_ac.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/fec0fe6838a7f45175667701fb51abb23a6ffb1e https://git.kernel.org/stable/c/b859ba18b5a1067f71db5618c6a4a70d55fa308b https://git.kernel.org/stable/c/8b855b645841b5a04e20339a22bb6d593c9b790d https://git.kernel.org/stable/c/d360b31f1a3666579422872aa7d1a751e20b76f9 https://git.kernel.org/stable/c/060f827aa3dc47939ee306da715cd6700d129616 https://git.kernel.org/stable/c/41dcae82bece9f106b4dff0ee777bba8d157c8a8 https://git.kernel.org/stable/c/cb3528ad8bb46fa6252f5d14ced7febddc18515d https://git.kernel.org/stable/c/72f9dd522f8d6c5a00be9695c7bb74631eb5069e