powerpc/kasan: Limit KASAN thread size increase to 32KB
In the Linux kernel, the following vulnerability has been resolved: powerpc/kasan: Limit KASAN thread size increase to 32KB KASAN is seen to increase stack usage, to the point that it was reported to lead to stack overflow on some 32-bit machines (see link). To avoid overflows the stack size was doubled for KASAN builds in commit 3e8635fb2e07 ("powerpc/kasan: Force thread size increase with KASAN"). However with a 32KB stack size to begin with, the doubling leads to a 64KB stack, which causes build errors: arch/powerpc/kernel/switch.S:249: Error: operand out of range (0x000000000000fe50 is not between 0xffffffffffff8000 and 0x0000000000007fff) Although the asm could be reworked, in practice a 32KB stack seems sufficient even for KASAN builds - the additional usage seems to be in the 2-3KB range for a 64-bit KASAN build. So only increase the stack for KASAN if the stack size is < 32KB.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.76, 6.6.18, 6.7.6
- CVEs
- CVE-2024-26710
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 20:55 UTC · Revision 1
Source evidence
powerpc/kasan: Limit KASAN thread size increase to 32KB
core-osv · Original sourcePublished 3 Apr 2024, 14:55 UTC
In the Linux kernel, the following vulnerability has been resolved: powerpc/kasan: Limit KASAN thread size increase to 32KB KASAN is seen to increase stack usage, to the point that it was reported to lead to stack overflow on some 32-bit machines (see link). To avoid overflows the stack size was doubled for KASAN builds in commit 3e8635fb2e07 ("powerpc/kasan: Force thread size increase with KASAN"). However with a 32KB stack size to begin with, the doubling leads to a 64KB stack, which causes build errors: arch/powerpc/kernel/switch.S:249: Error: operand out of range (0x000000000000fe50 is not between 0xffffffffffff8000 and 0x0000000000007fff) Although the asm could be reworked, in practice a 32KB stack seems sufficient even for KASAN builds - the additional usage seems to be in the 2-3KB range for a 64-bit KASAN build. So only increase the stack for KASAN if the stack size is < 32KB.
osv:CVE-2024-26710
Kernel
Fixed versions: 6.1.76, 6.6.18, 6.7.6
Complete source record
{
"id": "d94ac90cfbfea783e6999562a2450f252565563da0ef2dd122be9fc6a4439861",
"url": "https://osv.dev/vulnerability/CVE-2024-26710",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "powerpc/kasan: Limit KASAN thread size increase to 32KB",
"summary": "In the Linux kernel, the following vulnerability has been resolved: powerpc/kasan: Limit KASAN thread size increase to 32KB KASAN is seen to increase stack usage, to the point that it was reported to lead to stack overflow on some 32-bit machines (see link). To avoid overflows the stack size was doubled for KASAN builds in commit 3e8635fb2e07 (\"powerpc/kasan: Force thread size increase with KASAN\"). However with a 32KB stack size to begin with, the doubling leads to a 64KB stack, which causes build errors: arch/powerpc/kernel/switch.S:249: Error: operand out of range (0x000000000000fe50 is not between 0xffffffffffff8000 and 0x0000000000007fff) Although the asm could be reworked, in practice a 32KB stack seems sufficient even for KASAN builds - the additional usage seems to be in the 2-3KB range for a 64-bit KASAN build. So only increase the stack for KASAN if the stack size is < 32KB.",
"evidence": "osv:CVE-2024-26710",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.76",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.18",
"evidence": "/affected/1/ranges"
},
{
"value": "6.7.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-26710",
"aliases": [
"CVE-2024-26710"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "9ccf64e763aca088b0d25c1274af42b1a6a45135"
},
{
"fixed": "f9a4c401bf4c5af3437ad221c0a5880a518068d4"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b38014874530d3776de75679315e8c1fe04aa89b"
},
{
"fixed": "4cc31fa07445879a13750cb061bb8c2654975fcb"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "58f396513cb1fa4ef91838c78698d458100cc27c"
},
{
"fixed": "b29b16bd836a838b7690f80e37f8376414c74cbe"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "18f14afe281648e31ed35c9ad2fcb724c4838ad9"
},
{
"fixed": "f1acb109505d983779bbb7e20a1ee6244d2b5736"
}
]
}
],
"versions": [
"v6.1.75",
"v6.6.17",
"v6.6.16",
"v6.6.15",
"v6.6.14",
"v6.7.5",
"v6.7.4",
"v6.7.3",
"v6.7.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26710.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.75"
},
{
"fixed": "6.1.76"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.14"
},
{
"fixed": "6.6.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.2"
},
{
"fixed": "6.7.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26710.json"
}
}
],
"modified": "2026-10-28T02:30:39.627712136Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/4297217bcf1f0948a19c2bacc6b68d92e7778ad9",
"https://git.kernel.org/stable/c/4cc31fa07445879a13750cb061bb8c2654975fcb",
"https://git.kernel.org/stable/c/b29b16bd836a838b7690f80e37f8376414c74cbe",
"https://git.kernel.org/stable/c/f1acb109505d983779bbb7e20a1ee6244d2b5736",
"https://git.kernel.org/stable/c/f9a4c401bf4c5af3437ad221c0a5880a518068d4",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26710.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-26710",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26710.json"
}
},
"related_cves": [
{
"value": "CVE-2024-26710",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 506930,
"published_at": "2024-04-03T14:55:12.583+00:00"
}