Bug 2026491 (CVE-2022-0644)

Summary: CVE-2022-0644 kernel: Assertion failure can happen if users trigger kernel_read_file_from_fd()
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bhu, brdeoliv, bskeggs, chwhite, cmaiolin, crwood, dhoward, dvlasenk, esandeen, fhrbata, fpacheco, hdegoede, hkrzesin, jarod, jarodwilson, jburrell, jeremy, jfaracco, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rkeshri, rvrbovsk, scweaver, steved, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-12 05:52:36 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: 2055006, 2055007, 2055008, 2055010    
Bug Blocks: 2026492    

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