• Steffen Klassert's avatar
    xfrm4: Fix header checks in _decode_session4. · 1a14f1e5
    Steffen Klassert authored
    We skip the header informations if the data pointer points
    already behind the header in question for some protocols.
    This is because we call pskb_may_pull with a negative value
    converted to unsigened int from pskb_may_pull in this case.
    Skipping the header informations can lead to incorrect policy
    lookups, so fix it by a check of the data pointer position
    before we call pskb_may_pull.
    Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
    1a14f1e5
xfrm4_policy.c 7.69 KB