Bug 2226777 (CVE-2023-39189, ZDI-CAN-18745)

Summary: CVE-2023-39189 kernel: netfilter: nftables out-of-bounds read in nf_osf_match_one()
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, allarkin, bhu, chwhite, crwood, cye, dbohanno, ddepaula, debarbos, dfreiber, dvlasenk, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, nmurray, ptalbert, qzhao, rogbas, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, security-response-team, tglozar, tyberry, vkumar, walters, wcosta, williams, wmealing, ycote, ykopkova, ymankad, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.6-rc1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Netfilter subsystem in the Linux kernel. The nfnl_osf_add_callback function did not validate the user mode controlled opt_num field. This flaw allows a local privileged (CAP_NET_ADMIN) attacker to trigger an out-of-bounds read, leading to a crash or information disclosure.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2227287, 2227288, 2242893    
Bug Blocks: 2225771    

Description Mauro Matteo Cascella 2023-07-26 13:40:06 UTC
An out-of-bounds read issue was found in the Linux kernel in the nf_osf_match_one() function, which is used for nftables OS fingerprinting. This flaw requires CAP_NET_ADMIN to be exploited and could lead to information disclosure.

Comment 7 Mauro Matteo Cascella 2023-10-09 07:59:59 UTC
Upstream fix:
https://github.com/torvalds/linux/commit/f4f8a7803119005e87b716874bec07c751efafec

Comment 8 Mauro Matteo Cascella 2023-10-09 15:48:22 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2242893]

Comment 10 Justin M. Forbes 2023-10-12 16:41:09 UTC
This was fixed for Fedora with the 6.5.4 stable kernel updates.

Comment 11 errata-xmlrpc 2024-04-30 10:11:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 12 errata-xmlrpc 2024-05-22 09:14:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 13 errata-xmlrpc 2024-05-22 09:51:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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