Centos-kernel-stream-9/net/ieee802154
Jose Ignacio Tornos Martinez 6209451203 net: ieee802154: do not leave a dangling sk pointer in ieee802154_create()
JIRA: https://issues.redhat.com/browse/RHEL-73817
JIRA: https://issues.redhat.com/browse/RHEL-72282
CVE: CVE-2024-56602

commit b4fcd63f6ef79c73cafae8cf4a114def5fc3d80d
Author: Ignat Korchagin <ignat@cloudflare.com>
Date:   Mon Oct 14 16:38:04 2024 +0100

    net: ieee802154: do not leave a dangling sk pointer in ieee802154_create()
    
    sock_init_data() attaches the allocated sk object to the provided sock
    object. If ieee802154_create() fails later, the allocated sk object is
    freed, but the dangling pointer remains in the provided sock object, which
    may allow use-after-free.
    
    Clear the sk pointer in the sock object on error.
    
    Signed-off-by: Ignat Korchagin <ignat@cloudflare.com>
    Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Link: https://patch.msgid.link/20241014153808.51894-6-ignat@cloudflare.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2025-01-15 17:26:25 +01:00
..
6lowpan rtnetlink: prepare nla_put_iflink() to run under RCU 2024-10-24 16:14:43 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
core.c netdev_features: convert NETIF_F_NETNS_LOCAL to dev->netns_local 2024-10-03 17:59:51 +02:00
core.h
header_ops.c
ieee802154.h
netlink.c genetlink: start to validate reserved header bytes 2023-03-06 15:42:45 +01:00
nl-mac.c ieee802154: fix error return code in ieee802154_llsec_getparams() 2021-06-03 10:59:49 +02:00
nl-phy.c net: Remove redundant if statements 2022-01-10 16:20:08 +01:00
nl802154.c genetlink: use attrs from struct genl_info 2024-04-10 09:19:30 +02:00
nl802154.h
nl_policy.c nl802154: add missing attribute validation for dev_type 2020-03-03 13:28:48 -08:00
rdev-ops.h
socket.c net: ieee802154: do not leave a dangling sk pointer in ieee802154_create() 2025-01-15 17:26:25 +01:00
sysfs.c
sysfs.h
trace.c
trace.h