{"id":"DEBIAN-CVE-2024-26712","details":"In the Linux kernel, the following vulnerability has been resolved:  powerpc/kasan: Fix addr error caused by page alignment  In kasan_init_region, when k_start is not page aligned, at the begin of for loop, k_cur = k_start & PAGE_MASK is less than k_start, and then `va = block + k_cur - k_start` is less than block, the addr va is invalid, because the memory address space from va to block is not alloced by memblock_alloc, which will not be reserved by memblock_reserve later, it will be used by other places.  As a result, memory overwriting occurs.  for example: int __init __weak kasan_init_region(void *start, size_t size) { [...] \t/* if say block(dcd97000) k_start(feef7400) k_end(feeff3fe) */ \tblock = memblock_alloc(k_end - k_start, PAGE_SIZE); \t[...] \tfor (k_cur = k_start & PAGE_MASK; k_cur \u003c k_end; k_cur += PAGE_SIZE) { \t\t/* at the begin of for loop \t\t * block(dcd97000) va(dcd96c00) k_cur(feef7000) k_start(feef7400) \t\t * va(dcd96c00) is less than block(dcd97000), va is invalid \t\t */ \t\tvoid *va = block + k_cur - k_start; \t\t[...] \t} [...] }  Therefore, page alignment is performed on k_start before memblock_alloc() to ensure the validity of the VA address.","modified":"2026-09-15T09:03:05.061889044Z","published":"2024-04-03T15:15:53.590Z","upstream":["CVE-2024-26712"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-26712"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.82-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1","6.1.52-1","6.1.55-1","6.1.55-1~bpo11+1","6.1.64-1","6.1.66-1","6.1.67-1","6.1.69-1","6.1.69-1~bpo11+1","6.1.76-1","6.1.76-1~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26712.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26712.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26712.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}