LoongArch: BPF: Zero-extend signed ALU32 div/mod results
In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: Zero-extend signed ALU32 div/mod results ALU32 operations write a 32-bit result and leave the upper 32 bits of the BPF register zero. The LoongArch JIT sign-extends the result of signed ALU32 BPF_DIV and BPF_MOD (off=1), so a negative 32-bit quotient or remainder leaves bits 63:32 set in JITted code while the verifier and interpreter model those bits as zero. Keep sign-extension on the operands, which signed divide needs, and zero-extend the ALU32 result after the divide or modulo instruction, matching the unsigned ALU32 div/mod paths and every other ALU32 operation in this JIT.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.114, 6.18.57, 7.1.6
- CVEs
- CVE-2026-68295
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 01:41 UTC · Revision 1
Source evidence
LoongArch: BPF: Zero-extend signed ALU32 div/mod results
core-osv · Original sourcePublished 10 Aug 2026, 12:02 UTC
In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: Zero-extend signed ALU32 div/mod results ALU32 operations write a 32-bit result and leave the upper 32 bits of the BPF register zero. The LoongArch JIT sign-extends the result of signed ALU32 BPF_DIV and BPF_MOD (off=1), so a negative 32-bit quotient or remainder leaves bits 63:32 set in JITted code while the verifier and interpreter model those bits as zero. Keep sign-extension on the operands, which signed divide needs, and zero-extend the ALU32 result after the divide or modulo instruction, matching the unsigned ALU32 div/mod paths and every other ALU32 operation in this JIT.
osv:CVE-2026-68295
Kernel
Fixed versions: 6.12.114, 6.18.57, 7.1.6
Complete source record
{
"id": "fd04663c50b4f13114693effd98b5b66cd69af4662e5d5db02238bbd67507e2c",
"url": "https://osv.dev/vulnerability/CVE-2026-68295",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "LoongArch: BPF: Zero-extend signed ALU32 div/mod results",
"summary": "In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: Zero-extend signed ALU32 div/mod results ALU32 operations write a 32-bit result and leave the upper 32 bits of the BPF register zero. The LoongArch JIT sign-extends the result of signed ALU32 BPF_DIV and BPF_MOD (off=1), so a negative 32-bit quotient or remainder leaves bits 63:32 set in JITted code while the verifier and interpreter model those bits as zero. Keep sign-extension on the operands, which signed divide needs, and zero-extend the ALU32 result after the divide or modulo instruction, matching the unsigned ALU32 div/mod paths and every other ALU32 operation in this JIT.",
"evidence": "osv:CVE-2026-68295",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.114",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.57",
"evidence": "/affected/1/ranges"
},
{
"value": "7.1.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-68295",
"aliases": [
"CVE-2026-68295"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "2425c9e002d2a1fdca34261b2fa6713eafef2163"
},
{
"fixed": "7577cca85f2d4590c9d9423ba72ef54181a713c9"
},
{
"fixed": "16656c3d734693be3d8a36dbf9d09142b69f3ddc"
},
{
"fixed": "716cb29dbed4d62e9e108950a1a82bcba4cc2d45"
},
{
"fixed": "dacd348b8a993373576fe2ee2d8b114740ba57a6"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68295.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.114"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.57"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.1.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68295.json"
}
}
],
"modified": "2026-10-28T02:30:25.099519354Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/16656c3d734693be3d8a36dbf9d09142b69f3ddc",
"https://git.kernel.org/stable/c/716cb29dbed4d62e9e108950a1a82bcba4cc2d45",
"https://git.kernel.org/stable/c/7577cca85f2d4590c9d9423ba72ef54181a713c9",
"https://git.kernel.org/stable/c/dacd348b8a993373576fe2ee2d8b114740ba57a6",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68295.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-68295",
"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/2026/68xxx/CVE-2026-68295.json"
}
},
"related_cves": [
{
"value": "CVE-2026-68295",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 491697,
"published_at": "2026-08-10T12:02:28.412+00:00"
}