Bug 2051444 (CVE-2022-24448) - CVE-2022-24448 kernel: nfs_atomic_open() returns uninitialized data instead of ENOTDIR
Summary: CVE-2022-24448 kernel: nfs_atomic_open() returns uninitialized data instead o...
Keywords:
Status: NEW
Alias: CVE-2022-24448
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2059727 2059728 2059729 2059730 2051445
Blocks: 2051447
TreeView+ depends on / blocked
 
Reported: 2022-02-07 09:22 UTC by Marian Rehak
Modified: 2022-06-04 08:05 UTC (History)
47 users (show)

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.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.