In the Linux kernel, the following vulnerability has been resolved:
iommufd/iovabitmap: Fix shift-out-of-bounds in iovabitmapoffsetto_index()
Resolve a UBSAN shift-out-of-bounds issue in iovabitmapoffsettoindex() where shifting the constant "1" (of type int) by bitmap->mapped.pgshift (an unsigned long value) could result in undefined behavior.
The constant "1" defaults to a 32-bit "int", and when "pgshift" exceeds 31 (e.g., pgshift = 63) the shift operation overflows, as the result cannot be represented in a 32-bit type.
To resolve this, the constant is updated to "1UL", promoting it to an unsigned long type to match the operand's type.
[
{
"id": "CVE-2025-21724-0e2302fa",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"57929844046991501088872937790737881674",
"260192655064036208992155165131514885417",
"34640908188381764654098857335165844800",
"165457180449557074767594002694626904171"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e24c1551059268b37f6f40639883eafb281b8b9c",
"target": {
"file": "drivers/iommu/iommufd/iova_bitmap.c"
}
},
{
"id": "CVE-2025-21724-5b531de4",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"57929844046991501088872937790737881674",
"260192655064036208992155165131514885417",
"34640908188381764654098857335165844800",
"165457180449557074767594002694626904171"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@38ac76fc06bc6826a3e4b12a98efbe98432380a9",
"target": {
"file": "drivers/vfio/iova_bitmap.c"
}
},
{
"id": "CVE-2025-21724-71a8c843",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"57929844046991501088872937790737881674",
"260192655064036208992155165131514885417",
"34640908188381764654098857335165844800",
"165457180449557074767594002694626904171"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5d33f01b86af44b23eea61ee309e4ef22c0cdfe",
"target": {
"file": "drivers/iommu/iommufd/iova_bitmap.c"
}
},
{
"id": "CVE-2025-21724-8844cf20",
"signature_version": "v1",
"digest": {
"function_hash": "70944703761590397389764411092287313793",
"length": 186.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e24c1551059268b37f6f40639883eafb281b8b9c",
"target": {
"file": "drivers/iommu/iommufd/iova_bitmap.c",
"function": "iova_bitmap_offset_to_index"
}
},
{
"id": "CVE-2025-21724-b9253c95",
"signature_version": "v1",
"digest": {
"function_hash": "70944703761590397389764411092287313793",
"length": 186.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5d33f01b86af44b23eea61ee309e4ef22c0cdfe",
"target": {
"file": "drivers/iommu/iommufd/iova_bitmap.c",
"function": "iova_bitmap_offset_to_index"
}
},
{
"id": "CVE-2025-21724-fc9d3a1b",
"signature_version": "v1",
"digest": {
"function_hash": "70944703761590397389764411092287313793",
"length": 186.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@38ac76fc06bc6826a3e4b12a98efbe98432380a9",
"target": {
"file": "drivers/vfio/iova_bitmap.c",
"function": "iova_bitmap_offset_to_index"
}
}
]