Bug 2154176 (CVE-2023-1194)

Summary: CVE-2023-1194 kernel: use-after-free in parse_lease_state()
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, bhu, chwhite, crwood, ddepaula, debarbos, dfreiber, dhoward, dvlasenk, ezulian, fhrbata, hkrzesin, jarod, jburrell, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, kernel-mgr, lgoncalv, lleshchi, lzampier, nmurray, ptalbert, qzhao, rkeshri, rogbas, rvrbovsk, scweaver, steve.beattie, tyberry, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.4 Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds (OOB) memory read flaw was found in parse_lease_state in the KSMBD implementation of the in-kernel samba server and CIFS in the Linux kernel. When an attacker sends the CREATE command with a malformed payload to KSMBD, due to a missing check of `NameOffset` in the `parse_lease_state()` function, the `create_context` object can access invalid memory.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-17 02:48:32 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: 2154180    
Bug Blocks: 2139758    

Description TEJ RATHI 2022-12-16 06:05:18 UTC
An out-of-bounds (OOB) memory read flaw was found in parse_lease_state in KSMBD implemetation of in-kernel samba server and CIFS in the Linux kernel. When attacker sends CREATE command with malform payload to KSMBD, because of missing check `NameOffset` in function `parse_lease_state()`, the `create_context` object can access invalid memory.

Refer
https://www.spinics.net/lists/stable-commits/msg303065.html

Comment 4 Rohit Keshri 2022-12-16 06:49:05 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2154180]