{"id":"CVE-2023-54056","summary":"kheaders: Use array declaration instead of char","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nkheaders: Use array declaration instead of char\n\nUnder CONFIG_FORTIFY_SOURCE, memcpy() will check the size of destination\nand source buffers. Defining kernel_headers_data as \"char\" would trip\nthis check. Since these addresses are treated as byte arrays, define\nthem as arrays (as done everywhere else).\n\nThis was seen with:\n\n  $ cat /sys/kernel/kheaders.tar.xz \u003e\u003e /dev/null\n\n  detected buffer overflow in memcpy\n  kernel BUG at lib/string_helpers.c:1027!\n  ...\n  RIP: 0010:fortify_panic+0xf/0x20\n  [...]\n  Call Trace:\n   \u003cTASK\u003e\n   ikheaders_read+0x45/0x50 [kheaders]\n   kernfs_fop_read_iter+0x1a4/0x2f0\n  ...","modified":"2026-08-12T03:51:18.076055726Z","published":"2025-12-24T12:23:04.559Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54056.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4a07d2d511e2703efd4387891d49e0326f1157f3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/719459877d58c8aced5845c1e5b98d8d87d09197"},{"type":"WEB","url":"https://git.kernel.org/stable/c/82d2e01b95c439fe55fab5e04fc83387c42d3a48"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b69edab47f1da8edd8e7bfdf8c70f51a2a5d89fb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b9f6845a492de20679b84bda6b08be347c5819da"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d6d1af6b8611801b585c53c0cc63626c8d339e96"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fcd2da2e6bf2640a31a2a5b118b50dc3635c707b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54056.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54056"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.0"}