Bug 1215114 (CVE-2023-4208)

Summary: VUL-0: CVE-2023-4208: kernel-source,kernel-source-rt,kernel-source-azure: net/sched UAF
Product: [Novell Products] SUSE Security Incidents Reporter: Cathy Hu <cathy.hu>
Component: IncidentsAssignee: Kernel Bugs <kernel-bugs>
Status: RESOLVED DUPLICATE QA Contact: Security Team bot <security-team>
Severity: Major    
Priority: P3 - Medium CC: security-team
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/377516/
Whiteboard:
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Cathy Hu 2023-09-07 09:07:19 UTC
CVE-2023-4208

A use-after-free vulnerability in the Linux kernel's net/sched: cls_u32
component can be exploited to achieve local privilege escalation.

When u32_change() is called on an existing filter, the whole tcf_result struct
is always copied into the new instance of the filter. This causes a problem when
updating a filter bound to a class, as tcf_unbind_filter() is always called on
the old instance in the success path, decreasing filter_cnt of the still
referenced class and allowing it to be deleted, leading to a use-after-free.

We recommend upgrading past commit 3044b16e7c6fe5d24b1cdbcf1bd0a9d92d1ebd81.



References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-4208
https://bugzilla.redhat.com/show_bug.cgi?id=2237757
https://www.cve.org/CVERecord?id=CVE-2023-4208
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3044b16e7c6fe5d24b1cdbcf1bd0a9d92d1ebd81
https://kernel.dance/3044b16e7c6fe5d24b1cdbcf1bd0a9d92d1ebd81
Comment 1 Cathy Hu 2023-09-07 09:07:44 UTC
I think CVE-2023-4208 is a duplicate to the fixing commit 3044b16e7c6fe5d24b1cdbcf1bd0a9d92d1ebd81 "net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free" described in CVE-2023-4128

i will talk to mitre
Comment 2 Cathy Hu 2023-09-12 07:19:21 UTC
Alphabet CNA has confirmed this to be a duplicate to bnc#1214149, closing as duplicate

*** This bug has been marked as a duplicate of bug 1214149 ***