CVE-2023-54056

Source
https://cve.org/CVERecord?id=CVE-2023-54056
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54056.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-54056
Downstream
Published
2025-12-24T12:23:04.559Z
Modified
2026-04-02T09:45:32.786936Z
Summary
kheaders: Use array declaration instead of char
Details

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

kheaders: Use array declaration instead of char

Under CONFIGFORTIFYSOURCE, memcpy() will check the size of destination and source buffers. Defining kernelheadersdata as "char" would trip this check. Since these addresses are treated as byte arrays, define them as arrays (as done everywhere else).

This was seen with:

$ cat /sys/kernel/kheaders.tar.xz >> /dev/null

detected buffer overflow in memcpy kernel BUG at lib/stringhelpers.c:1027! ... RIP: 0010:fortifypanic+0xf/0x20 [...] Call Trace: <TASK> ikheadersread+0x45/0x50 [kheaders] kernfsfopreaditer+0x1a4/0x2f0 ...

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54056.json",
    "cna_assigner": "Linux"
}
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
43d8ce9d65a54846d378545770991e65838981e0
Fixed
719459877d58c8aced5845c1e5b98d8d87d09197
Fixed
fcd2da2e6bf2640a31a2a5b118b50dc3635c707b
Fixed
4a07d2d511e2703efd4387891d49e0326f1157f3
Fixed
b9f6845a492de20679b84bda6b08be347c5819da
Fixed
d6d1af6b8611801b585c53c0cc63626c8d339e96
Fixed
82d2e01b95c439fe55fab5e04fc83387c42d3a48
Fixed
b69edab47f1da8edd8e7bfdf8c70f51a2a5d89fb

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54056.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.2.0
Fixed
5.4.243
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.180
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.111
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.28
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.15
Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.3.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54056.json"