Bug 2115278 (CVE-2022-36946)

Summary: CVE-2022-36946 kernel: DoS in nfqnl_mangle in net/netfilter/nfnetlink_queue.c
Product: [Other] Security Response Reporter: Alex <allarkin>
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, brdeoliv, bskeggs, chwhite, crwood, ddepaula, debarbos, dhoward, dvlasenk, fhrbata, hdegoede, hkrzesin, hpa, jarod, jarodwilson, jburrell, jfaracco, jferlan, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rvrbovsk, scweaver, steved, tyberry, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Kernel 5.18.16 Doc Type: If docs needed, set a value
Doc Text:
A memory corruption flaw was found in the Linux kernel’s Netfilter subsystem in the way a local user uses the libnetfilter_queue when analyzing a corrupted network packet. This flaw allows a local user to crash the system or a remote user to crash the system when the libnetfilter_queue is used by a local user.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-05 20:21:20 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: 2116157, 2116159, 2116160, 2116161, 2116162    
Bug Blocks: 2111859    

Description Alex 2022-08-04 10:47:08 UTC
A Linux Kernel flaw found in the net/netfilter/nfnetlink_queue.c.
If local user creates netfilter rule that truncates the packet below the header size, the skb_pull() will result in a malformed skb (skb->len < 0).
As result, denial of service could happen after incorrect check in nfqnl_mangle function.

Fixes: 7af4cc3fa158 ("[NETFILTER]: Add "nfnetlink_queue" netfilter queue handler over nfnetlink")

Reference:
https://lore.kernel.org/all/20220726104206.2036-1-fw@strlen.de/t/

Comment 1 Alex 2022-08-07 16:02:16 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2116157]

Comment 4 Justin M. Forbes 2022-08-11 12:59:32 UTC
This was fixed for Fedora with the 5.18.16 stable kernel update.

Comment 5 errata-xmlrpc 2022-11-08 09:10:29 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 6 errata-xmlrpc 2022-11-08 10:10:17 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 7 errata-xmlrpc 2022-11-15 09:45:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 8 errata-xmlrpc 2022-11-15 10:48:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 9 Product Security DevOps Team 2022-12-05 20:21:15 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-36946

Comment 13 errata-xmlrpc 2024-02-07 16:29:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

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