{"id":"CVE-2025-71270","state":"PUBLISHED","title":"LoongArch: Enable exception fixup for specific ADE subcode","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Enable exception fixup for specific ADE subcode\n\nThis patch allows the LoongArch BPF JIT to handle recoverable memory\naccess errors generated by BPF_PROBE_MEM* instructions.\n\nWhen a BPF program performs memory access operations, the instructions\nit executes may trigger ADEM exceptions. The kernel’s built-in BPF\nexception table mechanism (EX_TYPE_BPF) will generate corresponding\nexception fixup entries in the JIT compilation phase; however, the\narchitecture-specific trap handling function needs to proactively call\nthe common fixup routine to achieve exception recovery.\n\ndo_ade(): fix EX_TYPE_BPF memory access exceptions for BPF programs,\nensure safe execution.\n\nRelevant test cases: illegal address access tests in module_attach and\nsubprogs_extable of selftests/bpf.","publishedAt":"2026-03-18T17:40:59.838Z","updatedAt":"2026-05-11T21:57:08.956Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c","status":"affected","lessThan":"73ede654d9daa2ee41bdd17bc62946fc5a0258cb","versionType":"git"},{"version":"dbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c","status":"affected","lessThan":"c49a28068363f3dca439aa5fe4d3b1f8159809fe","versionType":"git"},{"version":"dbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c","status":"affected","lessThan":"c2ed4f71e9288f21d5c53ff790270758e60fa5f9","versionType":"git"},{"version":"dbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c","status":"affected","lessThan":"9bdc1ab5e4ce6f066119018d8f69631a46f9c5a0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kernel/traps.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.124","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.70","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.10","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kernel/traps.c"]}],"references":["https://git.kernel.org/stable/c/73ede654d9daa2ee41bdd17bc62946fc5a0258cb","https://git.kernel.org/stable/c/c49a28068363f3dca439aa5fe4d3b1f8159809fe","https://git.kernel.org/stable/c/c2ed4f71e9288f21d5c53ff790270758e60fa5f9","https://git.kernel.org/stable/c/9bdc1ab5e4ce6f066119018d8f69631a46f9c5a0"],"weaknesses":[],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71270.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71270","state":"PUBLISHED","datePublished":"2026-03-18T17:40:59.838Z","dateUpdated":"2026-05-11T21:57:08.956Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-17T09:08:18.458Z"},"containers":{"cna":{"title":"LoongArch: Enable exception fixup for specific ADE subcode","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Enable exception fixup for specific ADE subcode\n\nThis patch allows the LoongArch BPF JIT to handle recoverable memory\naccess errors generated by BPF_PROBE_MEM* instructions.\n\nWhen a BPF program performs memory access operations, the instructions\nit executes may trigger ADEM exceptions. The kernel’s built-in BPF\nexception table mechanism (EX_TYPE_BPF) will generate corresponding\nexception fixup entries in the JIT compilation phase; however, the\narchitecture-specific trap handling function needs to proactively call\nthe common fixup routine to achieve exception recovery.\n\ndo_ade(): fix EX_TYPE_BPF memory access exceptions for BPF programs,\nensure safe execution.\n\nRelevant test cases: illegal address access tests in module_attach and\nsubprogs_extable of selftests/bpf."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c","status":"affected","lessThan":"73ede654d9daa2ee41bdd17bc62946fc5a0258cb","versionType":"git"},{"version":"dbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c","status":"affected","lessThan":"c49a28068363f3dca439aa5fe4d3b1f8159809fe","versionType":"git"},{"version":"dbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c","status":"affected","lessThan":"c2ed4f71e9288f21d5c53ff790270758e60fa5f9","versionType":"git"},{"version":"dbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c","status":"affected","lessThan":"9bdc1ab5e4ce6f066119018d8f69631a46f9c5a0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kernel/traps.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.124","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.70","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.10","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kernel/traps.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/73ede654d9daa2ee41bdd17bc62946fc5a0258cb"},{"url":"https://git.kernel.org/stable/c/c49a28068363f3dca439aa5fe4d3b1f8159809fe"},{"url":"https://git.kernel.org/stable/c/c2ed4f71e9288f21d5c53ff790270758e60fa5f9"},{"url":"https://git.kernel.org/stable/c/9bdc1ab5e4ce6f066119018d8f69631a46f9c5a0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:57:08.956Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.124"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.70"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}