diff options
| author | Nicolai Buchwitz <nb@tipi-net.de> | 2026-10-27 19:44:09 +0100 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-10-29 11:51:04 +0100 |
| commit | 829a09df899dcce860dcf5f70e09c1b2d7d425ab (patch) | |
| tree | 8537c609b873e44a940513b94fd95b93541b4f43 /scripts/basic/split-include.c | |
| parent | fb3e026ae548e3dd42ed3ef6420d33258dd91286 (diff) | |
| download | linux-829a09df899dcce860dcf5f70e09c1b2d7d425ab.tar.gz linux-829a09df899dcce860dcf5f70e09c1b2d7d425ab.zip | |
octeontx2-pf: fix skb use-after-free with ipsec crypto offload
otx2_dma_map_skb_frag() calls skb_unclone_full() on its own copy of the
skb pointer. For a cloned skb, for example with tcpdump running on the
interface, this frees the skb and the new copy is lost on return. The
transmit path then uses the freed skb and the copy leaks.
Make the skb writable in place in otx2_sq_append_skb() instead, so the
pointer stays valid. Also do this for nonlinear skbs, as the hardware
writes the encrypted data back into the frags, which may be shared,
for example with the TCP retransmit queue.
Fixes: 195c3d463181 ("octeontx2-pf: map skb data as device writeable")
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20261027-nb-otx2-xfrm-unshare-net-v3-1-31dc9d79d11d@tipi-net.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
