Bug 2026491 (CVE-2022-0644) - CVE-2022-0644 kernel: Assertion failure can happen if users trigger kernel_read_file_from_fd()
Summary: CVE-2022-0644 kernel: Assertion failure can happen if users trigger kernel_re...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2022-0644
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2055006 2055007 2055008 2055010
Blocks: 2026492
TreeView+ depends on / blocked
 
Reported: 2021-11-24 20:14 UTC by Pedro Sampaio
Modified: 2022-04-12 05:52 UTC (History)
50 users (show)

Fixed In Version: kernel 5.15 rc7
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the Linux kernel’s kernel_read_file_from_fd in the filesystem. This flaw allows a local user with normal privileges, to impact the availability of the system when attempting to read a file without read access/permission.
Clone Of:
Environment:
Last Closed: 2022-04-12 05:52:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2021-11-24 20:14:49 UTC
A vulnerability was found in kernel_read_file_from_fd in filesystem in the Linux kernel. In this flaw, A local, normal privileged user when tries reading a file without reading access, may impact to system availability problem. 

In the Linux kernel before 5.15, an assertion failure can happen if users trigger kernel_read_file_from_fd() without the READ flag enabled file descriptor. If users open a file without read access and then pass the fd to a syscall whose implementation calls kernel_read_file_from_fd(), kernel throws a warning from __kernel_read() which leads to crash if panic on warning is set. This currently affects both finit_module() and kexec_file_load(), but it could affect other syscalls in the future.

References:

https://lore.kernel.org/all/20211007220110.600005-1-willy@infradead.org/
https://lkml.org/lkml/2021/10/6/254


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