CVE-2024-46823

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-46823
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46823.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-46823
Downstream
Published
2024-09-27T12:39:23.959Z
Modified
2026-01-05T23:44:47.079554Z
Summary
kunit/overflow: Fix UB in overflow_allocation_test
Details

In the Linux kernel, the following vulnerability has been resolved:

kunit/overflow: Fix UB in overflowallocationtest

The 'devicename' array doesn't exist out of the 'overflowallocationtest' function scope. However, it is being used as a driver name when calling 'kunitdrivercreate' from 'kunitdevice_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 kunitdeviceregister directly as an ascii string.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46823.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d03c720e03bd9bf0b784d80b5d3ede7e2daf3b6e
Fixed
d1207f07decc66546a7fa463d2f335a856c986ef
Fixed
92e9bac18124682c4b99ede9ee3bcdd68f121e92

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.10.1
v6.10.2
v6.10.3
v6.10.4
v6.10.5
v6.10.6
v6.10.7
v6.10.8
v6.10.9
v6.11-rc1
v6.11-rc2
v6.7
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46823.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.10.10

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46823.json"