Bug 2182662 (CVE-2023-23003)

Summary: CVE-2023-23003 kernel: missing check for return value of hashmap__new() in the function expr__ctx_new
Product: [Other] Security Response Reporter: Alex <allarkin>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
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 NULL pointer dereference flaw was found in the Linux kernel’s Linux performance measurement and analysis tool. This flaw allows a local user to crash the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-29 13:16:13 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: 2182663    
Bug Blocks: 2174642    

Description Alex 2023-03-29 09:36:24 UTC
A flaw found in the Linux Kernel. In the Linux performance measurement and analysis tool (tools/perf/util/expr.c), there is missing check for return value of hashmap__new() in the function expr__ctx_new.
The hashmap__new() function may return ERR_PTR(-ENOMEM) when malloc() fails, add IS_ERR() checking for ctx->ids.

Reference:
https://github.com/torvalds/linux/commit/0a515a06c5ebfa46fee3ac519e418f801e718da4

Comment 1 Alex 2023-03-29 09:36:51 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2182663]

Comment 3 Product Security DevOps Team 2023-03-29 13:16:08 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-23003

Comment 4 Justin M. Forbes 2023-04-06 16:03:42 UTC
This was fixed for Fedora with the 5.16 stable kernel rebases.