summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-09-24 08:29:48 +0000
committerJakub Kicinski <kuba@kernel.org>2026-09-24 11:00:59 -0700
commit72f9dd522f8d6c5a00be9695c7bb74631eb5069e (patch)
treebac4f4f9105b9f14cd11c4f6c5d44cca3a88cc33 /tools/perf/scripts/python/export-to-postgresql.py
parent72b5b9a28b996e09b8b5b944370c79851bb68f52 (diff)
downloadlinux-next-72f9dd522f8d6c5a00be9695c7bb74631eb5069e.tar.gz
linux-next-72f9dd522f8d6c5a00be9695c7bb74631eb5069e.zip
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. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Closes: https://lore.kernel.org/netdev/179022851638.2160803.1808206741379444999@kernel.org/ Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260924082951.1599377-2-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions