Bug 2124475 (CVE-2022-3586) - CVE-2022-3586 kernel: net scheduler use-after-free information disclosure vulnerability
Summary: CVE-2022-3586 kernel: net scheduler use-after-free information disclosure vul...
Keywords:
Status: NEW
Alias: CVE-2022-3586
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2124490 2124492 2124493 2124494
Blocks: 2121242
TreeView+ depends on / blocked
 
Reported: 2022-09-06 09:24 UTC by Mauro Matteo Cascella
Modified: 2023-10-25 07:53 UTC (History)
36 users (show)

Fixed In Version: kernel 6.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel’s networking code. A use-after-free was found in the way the sch_sfb enqueue function used the socket buffer (SKB) cb field after the same SKB had been enqueued (and freed) into a child qdisc. This flaw allows a local, unprivileged user to to disclose sensitive information or crash the system, causing a denial of service.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2022-09-06 09:24:58 UTC
When the GSO splitting feature of sch_cake is enabled, GSO superpackets will be broken up and the resulting segments enqueued in place of the original skb. In this case, CAKE calls consume_skb() on the original skb, but still returns NET_XMIT_SUCCESS. This can confuse parent qdiscs into assuming the original skb still exists, when it really has been freed.

Upstream patch & commit:
https://lore.kernel.org/all/87wnao2ha3.fsf@toke.dk/T/
https://github.com/torvalds/linux/commit/9efd23297cca


Note You need to log in before you can comment on or make changes to this bug.