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.
Created kernel tracking bugs for this issue:
Affects: fedora-all [bug 2182663]
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):
This was fixed for Fedora with the 5.16 stable kernel rebases.