Bug 2182662 (CVE-2023-23003) - CVE-2023-23003 kernel: missing check for return value of hashmap__new() in the function expr__ctx_new
Summary: CVE-2023-23003 kernel: missing check for return value of hashmap__new() in th...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2023-23003
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: 2182663
Blocks: 2174642
TreeView+ depends on / blocked
 
Reported: 2023-03-29 09:36 UTC by Alex
Modified: 2023-04-06 16:03 UTC (History)
44 users (show)

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.
Clone Of:
Environment:
Last Closed: 2023-03-29 13:16:13 UTC
Embargoed:


Attachments (Terms of Use)

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.


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