aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorDavide Caratti <[email protected]>2020-12-03 09:58:21 +0000
committerJakub Kicinski <[email protected]>2020-12-03 19:13:21 +0000
commit13de4ed9e3a9ccbe54d05f7d5c773f69ecaf6c64 (patch)
tree3c31c25a52609be88914c1b5f78aa8d4c06f31f4 /net/tipc
parentMerge tag 'wireless-drivers-2020-12-03' of git://git.kernel.org/pub/scm/linux... (diff)
downloadkernel-13de4ed9e3a9ccbe54d05f7d5c773f69ecaf6c64.tar.gz
kernel-13de4ed9e3a9ccbe54d05f7d5c773f69ecaf6c64.zip
net: skbuff: ensure LSE is pullable before decrementing the MPLS ttl
skb_mpls_dec_ttl() reads the LSE without ensuring that it is contained in the skb "linear" area. Fix this calling pskb_may_pull() before reading the current ttl. Found by code inspection. Fixes: 2a2ea50870ba ("net: sched: add mpls manipulation actions to TC") Reported-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: Davide Caratti <[email protected]> Link: https://lore.kernel.org/r/53659f28be8bc336c113b5254dc637cc76bbae91.1606987074.git.dcaratti@redhat.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions