summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2019-07-23 13:00:15 +0300
committerCasey Schaufler <casey@schaufler-ca.com>2019-09-04 19:37:07 +0300
commit3f4287e7d98a2954f20bf96c567fdffcd2b63eb9 (patch)
tree2b96ff5097ecde8fc58fbe71fd67abde2cf7be94 /Documentation
parenta1a07f22346144d1e2108f9faa2a41fe67579e85 (diff)
downloadlinux-3f4287e7d98a2954f20bf96c567fdffcd2b63eb9.tar.xz
security: smack: Fix possible null-pointer dereferences in smack_socket_sock_rcv_skb()
In smack_socket_sock_rcv_skb(), there is an if statement on line 3920 to check whether skb is NULL: if (skb && skb->secmark != 0) This check indicates skb can be NULL in some cases. But on lines 3931 and 3932, skb is used: ad.a.u.net->netif = skb->skb_iif; ipv6_skb_to_auditdata(skb, &ad.a, NULL); Thus, possible null-pointer dereferences may occur when skb is NULL. To fix these possible bugs, an if statement is added to check skb. These bugs are found by a static analysis tool STCheck written by us. Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions