Bug 2182689 (CVE-2023-23005)

Summary: CVE-2023-23005 kernel: incorrect check for error case in the memory_tier_init
Product: [Other] Security Response Reporter: Alex <allarkin>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, allarkin, bhu, chwhite, crwood, dbohanno, ddepaula, debarbos, dfreiber, dvlasenk, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, kernel-mgr, ldoskova, lgoncalv, lleshchi, lzampier, nmurray, ptalbert, qzhao, rogbas, rrobaina, rvrbovsk, rysulliv, scweaver, tyberry, vkumar, walters, wcosta, williams, wmealing, ycote
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel’s mm/memory-tiers.c functionality in the memory_tier_init function, where an incorrect return value check from the alloc_memory_type occurs. The CVE is disputed because there are no realistic cases in which a user can cause the alloc_memory_type error case to be reached.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-29 14:46:19 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:    
Bug Blocks: 2174642    

Description Alex 2023-03-29 10:56:50 UTC
A flaw found in the Linux Kernel. Required to fix NULL to IS_ERR checking in memory_tier_init where alloc_memory_type() returns error pointers on error instead of NULL. Use IS_ERR() to check the return value to fix this.
The CVE is disputed, because there are no realistic cases in which a user can cause the alloc_memory_type error case to be reached.

Reference:
https://github.com/torvalds/linux/commit/4a625ceee8a0ab0273534cb6b432ce6b331db5ee

Comment 1 Product Security DevOps Team 2023-03-29 14:46:15 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-2023-23005