CVE-2024-53212 Information
Description
In the Linux kernel the following vulnerability has been resolved:
netlink: fix false positive warning in extack during dumps
Commit under fixes extended extack reporting to dumps. It works under normal conditions because extack errors are usually reported during ->start() or the first ->dump() it’s quite rare that the dump starts okay but fails later. If the dump does fail later however the input skb will already have the initiating message pulled so checking if bad attr falls within skb->data will fail.
Switch the check to using nlh which is always valid.
syzbot found a way to hit that scenario by filling up the receive queue. In this case we initiate a dump but don’t call ->dump() until there is read space for an skb.
WARNING: CPU: 1 PID: 5845 at net/netlink/af_netlink.c:2210 netlink_ack_tlv_fill+0x1a8/0x560 net/netlink/af_netlink.c:2209
RIP: 0010:netlink_ack_tlv_fill+0x1a8/0x560 net/netlink/af_netlink.c:2209
Call Trace:
Reference
https://git.kernel.org/stable/c/28af028a71371df5fcbf807fd4444bba8d0c33cc https://git.kernel.org/stable/c/3bf39fa849ab8ed52abb6715922e6102d3df9f97 https://git.kernel.org/stable/c/6406d0ce0414b807af5d2a4b781c3f3ee52b8a4d
Share on: