Skip to content
Heist/ feed
Back to feed
UnratedFix available

static_call: Replace pointless WARN_ON() in static_call_module_notify()

Type: advisorySources: OSV

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().

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.168, 6.1.113, 6.10.14, 6.11.3, 6.6.55
CVEs
CVE-2024-49954
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 17:45 UTC · Revision 1

Source evidence

static_call: Replace pointless WARN_ON() in static_call_module_notify()

core-osv · Original source

Published 21 Oct 2024, 18:02 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().

osv:CVE-2024-49954

Kernel

Fixed versions: 5.15.168, 6.1.113, 6.6.55, 6.10.14, 6.11.3

Complete source record
{
  "id": "ae2803fc4d9f4223cb16b4c8a868353bd35706f8bd52487c88770758a2b8adf3",
  "url": "https://osv.dev/vulnerability/CVE-2024-49954",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "static_call: Replace pointless WARN_ON() in static_call_module_notify()",
    "summary": "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().",
    "evidence": "osv:CVE-2024-49954",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.55",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-49954",
      "aliases": [
        "CVE-2024-49954"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9183c3f9ed710a8edf1a61e8a96d497258d26e08"
                },
                {
                  "fixed": "bc9356513d56b688775497b7ac6f2b967f46a80c"
                },
                {
                  "fixed": "ea2cdf4da093d0482f0ef36ba971e2e0c7673425"
                },
                {
                  "fixed": "e67534bd31d79952b50e791e92adf0b3e6c13b8c"
                },
                {
                  "fixed": "85a104aaef1f56623acc10ba4c42d5f046ba65b7"
                },
                {
                  "fixed": "b83bef74c121a3311240fc4002d23486b85355e4"
                },
                {
                  "fixed": "fe513c2ef0a172a58f158e2e70465c4317f0a9a2"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49954.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.10.0"
                },
                {
                  "fixed": "5.15.168"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.55"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.14"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49954.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.090888728Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/85a104aaef1f56623acc10ba4c42d5f046ba65b7",
        "https://git.kernel.org/stable/c/b83bef74c121a3311240fc4002d23486b85355e4",
        "https://git.kernel.org/stable/c/bc9356513d56b688775497b7ac6f2b967f46a80c",
        "https://git.kernel.org/stable/c/e67534bd31d79952b50e791e92adf0b3e6c13b8c",
        "https://git.kernel.org/stable/c/ea2cdf4da093d0482f0ef36ba971e2e0c7673425",
        "https://git.kernel.org/stable/c/fe513c2ef0a172a58f158e2e70465c4317f0a9a2",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49954.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-49954",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49954.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-49954",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 512574,
  "published_at": "2024-10-21T18:02:09.064+00:00"
}