{"id":"CVE-2024-26710","summary":"powerpc/kasan: Limit KASAN thread size increase to 32KB","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/kasan: Limit KASAN thread size increase to 32KB\n\nKASAN is seen to increase stack usage, to the point that it was reported\nto lead to stack overflow on some 32-bit machines (see link).\n\nTo avoid overflows the stack size was doubled for KASAN builds in\ncommit 3e8635fb2e07 (\"powerpc/kasan: Force thread size increase with\nKASAN\").\n\nHowever with a 32KB stack size to begin with, the doubling leads to a\n64KB stack, which causes build errors:\n  arch/powerpc/kernel/switch.S:249: Error: operand out of range (0x000000000000fe50 is not between 0xffffffffffff8000 and 0x0000000000007fff)\n\nAlthough the asm could be reworked, in practice a 32KB stack seems\nsufficient even for KASAN builds - the additional usage seems to be in\nthe 2-3KB range for a 64-bit KASAN build.\n\nSo only increase the stack for KASAN if the stack size is \u003c 32KB.","modified":"2026-04-02T10:05:38.847379Z","published":"2024-04-03T14:55:12.583Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26710.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4297217bcf1f0948a19c2bacc6b68d92e7778ad9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4cc31fa07445879a13750cb061bb8c2654975fcb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b29b16bd836a838b7690f80e37f8376414c74cbe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1acb109505d983779bbb7e20a1ee6244d2b5736"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f9a4c401bf4c5af3437ad221c0a5880a518068d4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26710.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26710"},{"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":"9ccf64e763aca088b0d25c1274af42b1a6a45135"},{"fixed":"f9a4c401bf4c5af3437ad221c0a5880a518068d4"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b38014874530d3776de75679315e8c1fe04aa89b"},{"fixed":"4cc31fa07445879a13750cb061bb8c2654975fcb"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"58f396513cb1fa4ef91838c78698d458100cc27c"},{"fixed":"b29b16bd836a838b7690f80e37f8376414c74cbe"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"18f14afe281648e31ed35c9ad2fcb724c4838ad9"},{"fixed":"f1acb109505d983779bbb7e20a1ee6244d2b5736"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26710.json"}}],"schema_version":"1.7.5"}