Bug 2051444 (CVE-2022-24448)

Summary: CVE-2022-24448 kernel: nfs_atomic_open() returns uninitialized data instead of ENOTDIR
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bdettelb, bhu, bskeggs, chwhite, crwood, dhoward, dvlasenk, fhrbata, hdegoede, hkrzesin, jarod, jarodwilson, jburrell, jeremy, jfaracco, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, jwboyer, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rvrbovsk, scweaver, smayhew, steved, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.16.5 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel. When an application tries to open a directory (using the O_DIRECTORY flag) in a mounted NFS filesystem, a lookup operation is performed. If the NFS server returns a file as a result of the lookup, the NFS filesystem returns an uninitialized file descriptor instead of the expected ENOTDIR value. This flaw leads to the kernel's data leak into the userspace.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-05 10:23:25 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: 2051445, 2059727, 2059728, 2059729, 2059730    
Bug Blocks: 2051447    

Description Marian Rehak 2022-02-07 09:22:58 UTC
If an application sets the O_DIRECTORY flag, and tries to open a regular file, nfs_atomic_open() performs a regular lookup. If a regular file is found, ENOTDIR should occur, but the server instead returns uninitialized data in the file descriptor.

References:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ac795161c93699d600db16c1a8cc23a65a1eceaf
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16.5

Comment 1 Marian Rehak 2022-02-07 09:23:31 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2051445]

Comment 2 juneau 2022-02-07 15:46:32 UTC
Marking OSD 3.x affected/ooss.
Marking OSD 4.x | quay-io-3 affected/delgated for low severity kernel issue.

Comment 4 Justin M. Forbes 2022-02-10 21:59:54 UTC
This was fixed for Fedora with the 5.16.5 stable kernel updates.

Comment 13 errata-xmlrpc 2022-11-08 09:09: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 14 errata-xmlrpc 2022-11-08 10:08:37 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 15 errata-xmlrpc 2022-11-15 09:44:22 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 16 errata-xmlrpc 2022-11-15 10:46:58 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 17 Product Security DevOps Team 2022-12-05 10:23:22 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-24448

Comment 20 errata-xmlrpc 2024-02-07 16:28:22 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