]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
netfilter: nfnetlink_queue: fix secctx memory leak
authorLiping Zhang <zlpnobody@gmail.com>
Tue, 28 Mar 2017 14:59:25 +0000 (22:59 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 29 Mar 2017 10:20:50 +0000 (12:20 +0200)
commit77c1c03c5b8ef28e55bb0aff29b1e006037ca645
treeabc13caee4c20c8c6e885624986158358d362898
parent75c689dca98851d65ef5a27e5ce26b625b68751c
netfilter: nfnetlink_queue: fix secctx memory leak

We must call security_release_secctx to free the memory returned by
security_secid_to_secctx, otherwise memory may be leaked forever.

Fixes: ef493bd930ae ("netfilter: nfnetlink_queue: add security context information")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_queue.c