Skip to content
Heist/ feed
Back to feed
HighFix available

kunit/overflow: Fix UB in overflow_allocation_test

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: kunit/overflow: Fix UB in overflow_allocation_test The 'device_name' array doesn't exist out of the 'overflow_allocation_test' function scope. However, it is being used as a driver name when calling 'kunit_driver_create' from 'kunit_device_register'. It produces the kernel panic with KASAN enabled. Since this variable is used in one place only, remove it and pass the device name into kunit_device_register directly as an ascii string.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.10.10
CVEs
CVE-2024-46823
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 03:23 UTC · Revision 1

Source evidence

kunit/overflow: Fix UB in overflow_allocation_test

core-osv · Original source

Published 27 Sept 2024, 12:39 UTC

In the Linux kernel, the following vulnerability has been resolved: kunit/overflow: Fix UB in overflow_allocation_test The 'device_name' array doesn't exist out of the 'overflow_allocation_test' function scope. However, it is being used as a driver name when calling 'kunit_driver_create' from 'kunit_device_register'. It produces the kernel panic with KASAN enabled. Since this variable is used in one place only, remove it and pass the device name into kunit_device_register directly as an ascii string.

osv:CVE-2024-46823

Kernel

Fixed versions: 6.10.10

Complete source record
{
  "id": "704a2f54f3b425fa9903eb99780d5ed24e6d921e1a3dbd6e4334d72cf097c08f",
  "url": "https://osv.dev/vulnerability/CVE-2024-46823",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "kunit/overflow: Fix UB in overflow_allocation_test",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: kunit/overflow: Fix UB in overflow_allocation_test The 'device_name' array doesn't exist out of the 'overflow_allocation_test' function scope. However, it is being used as a driver name when calling 'kunit_driver_create' from 'kunit_device_register'. It produces the kernel panic with KASAN enabled. Since this variable is used in one place only, remove it and pass the device name into kunit_device_register directly as an ascii string.",
    "evidence": "osv:CVE-2024-46823",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.10.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-46823",
      "aliases": [
        "CVE-2024-46823"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d03c720e03bd9bf0b784d80b5d3ede7e2daf3b6e"
                },
                {
                  "fixed": "d1207f07decc66546a7fa463d2f335a856c986ef"
                },
                {
                  "fixed": "92e9bac18124682c4b99ede9ee3bcdd68f121e92"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46823.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.10.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46823.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.451800564Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/92e9bac18124682c4b99ede9ee3bcdd68f121e92",
        "https://git.kernel.org/stable/c/d1207f07decc66546a7fa463d2f335a856c986ef",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46823.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-46823",
        "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/46xxx/CVE-2024-46823.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-46823",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509808,
  "published_at": "2024-09-27T12:39:23.959+00:00"
}