Bug 2070220 (CVE-2022-1055)

Summary: CVE-2022-1055 kernel: use-after-free in tc_new_tfilter() in net/sched/cls_api.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bdettelb, bhu, bskeggs, chwhite, crwood, dhoward, dvlasenk, fhrbata, hdegoede, hkrzesin, hpa, jarod, jarodwilson, jburrell, jfaracco, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, juneau, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, kyoshida, lgoncalv, linville, lzampier, masami256, mchehab, mleitner, nmurray, ptalbert, qzhao, rkeshri, rvrbovsk, scweaver, steved, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---Flags: bhu: needinfo?
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.17 rc3 Doc Type: If docs needed, set a value
Doc Text:
A use-after-free vulnerability was found in the tc_new_tfilter function in net/sched/cls_api.c in the Linux kernel. The availability of local, unprivileged user namespaces allows privilege escalation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-05 08:22:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2070221, 2071704, 2071705, 2071706, 2071707, 2071708, 2071709, 2071710, 2071711, 2080193, 2081283, 2090410    
Bug Blocks: 2070222    

Description Guilherme de Almeida Suckevicz 2022-03-30 16:18:15 UTC
A use-after-free exists in the Linux Kernel in tc_new_tfilter that could allow a local attacker to gain privilege escalation. The exploit requires unprivileged user namespaces. We recommend upgrading past commit 04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5

Reference and upstream patch:
https://syzkaller.appspot.com/bug?id=2212474c958978ab86525fe6832ac8102c309ffc
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5

Comment 1 Guilherme de Almeida Suckevicz 2022-03-30 16:19:14 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2070221]

Comment 3 Justin M. Forbes 2022-03-31 21:32:02 UTC
This was fixed for Fedora with the 5.16.6 stable kernel updates.

Comment 14 errata-xmlrpc 2022-08-09 16:59:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:6003 https://access.redhat.com/errata/RHSA-2022:6003

Comment 15 errata-xmlrpc 2022-08-09 17:07:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:6002 https://access.redhat.com/errata/RHSA-2022:6002

Comment 16 errata-xmlrpc 2022-11-08 09:09:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7444 https://access.redhat.com/errata/RHSA-2022:7444

Comment 17 errata-xmlrpc 2022-11-08 10:09:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7683 https://access.redhat.com/errata/RHSA-2022:7683

Comment 18 Product Security DevOps Team 2022-12-05 08:22:45 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-1055

Comment 22 errata-xmlrpc 2024-03-06 12:36:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:1188 https://access.redhat.com/errata/RHSA-2024:1188