Bug 2320546 (CVE-2024-49954) - CVE-2024-49954 kernel: static_call: Replace pointless WARN_ON() in static_call_module_notify()
Summary: CVE-2024-49954 kernel: static_call: Replace pointless WARN_ON() in static_cal...
Keywords:
Status: NEW
Alias: CVE-2024-49954
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2321049
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 19:09 UTC by OSIDB Bzimport
Modified: 2025-05-13 08:30 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:6966 0 None None None 2025-05-13 08:30:31 UTC

Description OSIDB Bzimport 2024-10-21 19:09:51 UTC
In the Linux kernel, the following vulnerability has been resolved:

static_call: Replace pointless WARN_ON() in static_call_module_notify()

static_call_module_notify() triggers a WARN_ON(), when memory allocation
fails in __static_call_add_module().

That's not really justified, because the failure case must be correctly
handled by the well known call chain and the error code is passed
through to the initiating userspace application.

A memory allocation fail is not a fatal problem, but the WARN_ON() takes
the machine out when panic_on_warn is set.

Replace it with a pr_warn().

Comment 2 Avinash Hanwate 2024-10-23 04:32:29 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024102130-CVE-2024-49954-cea5@gregkh/T

Comment 3 errata-xmlrpc 2025-05-13 08:30:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:6966 https://access.redhat.com/errata/RHSA-2025:6966


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