{"id":"CVE-2023-54056","aliases":["CVE-2023-54056"],"related":[],"kind":"vulnerability","state":"published","title":"kheaders: Use array declaration instead of char","summary":"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 >> /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   <TASK>\n   ikheaders_read+0x45/0x50 [kheaders]\n   kernfs_fop_read_iter+0x1a4/0x2f0\n  ...","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 >> /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   <TASK>\n   ikheaders_read+0x45/0x50 [kheaders]\n   kernfs_fop_read_iter+0x1a4/0x2f0\n  ...","source":"cvelist"}],"published":"2025-12-24T12:23:04.559Z","modified":"2026-06-17T06:46:43.437Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"43d8ce9d65a54846d378545770991e65838981e0","fixed":"719459877d58c8aced5845c1e5b98d8d87d09197","status":"affected"},{"type":"git","introduced":"43d8ce9d65a54846d378545770991e65838981e0","fixed":"fcd2da2e6bf2640a31a2a5b118b50dc3635c707b","status":"affected"},{"type":"git","introduced":"43d8ce9d65a54846d378545770991e65838981e0","fixed":"4a07d2d511e2703efd4387891d49e0326f1157f3","status":"affected"},{"type":"git","introduced":"43d8ce9d65a54846d378545770991e65838981e0","fixed":"b9f6845a492de20679b84bda6b08be347c5819da","status":"affected"},{"type":"git","introduced":"43d8ce9d65a54846d378545770991e65838981e0","fixed":"d6d1af6b8611801b585c53c0cc63626c8d339e96","status":"affected"},{"type":"git","introduced":"43d8ce9d65a54846d378545770991e65838981e0","fixed":"82d2e01b95c439fe55fab5e04fc83387c42d3a48","status":"affected"},{"type":"git","introduced":"43d8ce9d65a54846d378545770991e65838981e0","fixed":"b69edab47f1da8edd8e7bfdf8c70f51a2a5d89fb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.4.243","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.180","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.111","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.28","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.15","lastAffected":"6.2.*","status":"unaffected"},{"type":"semver","introduced":"6.3.2","lastAffected":"6.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.4","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/719459877d58c8aced5845c1e5b98d8d87d09197","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fcd2da2e6bf2640a31a2a5b118b50dc3635c707b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a07d2d511e2703efd4387891d49e0326f1157f3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9f6845a492de20679b84bda6b08be347c5819da","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d6d1af6b8611801b585c53c0cc63626c8d339e96","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82d2e01b95c439fe55fab5e04fc83387c42d3a48","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b69edab47f1da8edd8e7bfdf8c70f51a2a5d89fb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54056","url":"https://www.cve.org/CVERecord?id=CVE-2023-54056","licence":"CVE Terms of Use","modified":"2026-05-11T19:54:38.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54056","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54056","licence":"Public domain","modified":"2026-06-17T06:46:43.437Z"}],"updatedAt":"2026-11-25T22:58:35.158Z","epss":{"score":0.00308,"percentile":0.16111,"date":"2026-11-30T12:00:22.000Z"}}