{"id":"CVE-2025-22001","state":"PUBLISHED","title":"accel/qaic: Fix integer overflow in qaic_validate_req()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/qaic: Fix integer overflow in qaic_validate_req()\n\nThese are u64 variables that come from the user via\nqaic_attach_slice_bo_ioctl().  Use check_add_overflow() to ensure that\nthe math doesn't have an integer wrapping bug.","publishedAt":"2025-04-03T07:19:04.251Z","updatedAt":"2026-08-05T11:55:56.125Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ff13be8303336ead5621712f2c55012d738878b5","status":"affected","lessThan":"4b2a170c25862ad116bd31be6b9841646b4862e8","versionType":"git"},{"version":"ff13be8303336ead5621712f2c55012d738878b5","status":"affected","lessThan":"b362fc904d264a88b4af20baae9e82491c285e9c","versionType":"git"},{"version":"ff13be8303336ead5621712f2c55012d738878b5","status":"affected","lessThan":"57fae0c505f49bb1e3d5660cd2cc49697ed85f7c","versionType":"git"},{"version":"ff13be8303336ead5621712f2c55012d738878b5","status":"affected","lessThan":"67d15c7aa0864dfd82325c7e7e7d8548b5224c7b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/qaic/qaic_data.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.85","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.21","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.9","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/qaic/qaic_data.c"]}],"references":["https://git.kernel.org/stable/c/4b2a170c25862ad116bd31be6b9841646b4862e8","https://git.kernel.org/stable/c/b362fc904d264a88b4af20baae9e82491c285e9c","https://git.kernel.org/stable/c/57fae0c505f49bb1e3d5660cd2cc49697ed85f7c","https://git.kernel.org/stable/c/67d15c7aa0864dfd82325c7e7e7d8548b5224c7b"],"weaknesses":["CWE-190"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/22xxx/CVE-2025-22001.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22001","state":"PUBLISHED","datePublished":"2025-04-03T07:19:04.251Z","dateUpdated":"2026-08-05T11:55:56.125Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.802Z"},"containers":{"cna":{"title":"accel/qaic: Fix integer overflow in qaic_validate_req()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/qaic: Fix integer overflow in qaic_validate_req()\n\nThese are u64 variables that come from the user via\nqaic_attach_slice_bo_ioctl().  Use check_add_overflow() to ensure that\nthe math doesn't have an integer wrapping bug."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ff13be8303336ead5621712f2c55012d738878b5","status":"affected","lessThan":"4b2a170c25862ad116bd31be6b9841646b4862e8","versionType":"git"},{"version":"ff13be8303336ead5621712f2c55012d738878b5","status":"affected","lessThan":"b362fc904d264a88b4af20baae9e82491c285e9c","versionType":"git"},{"version":"ff13be8303336ead5621712f2c55012d738878b5","status":"affected","lessThan":"57fae0c505f49bb1e3d5660cd2cc49697ed85f7c","versionType":"git"},{"version":"ff13be8303336ead5621712f2c55012d738878b5","status":"affected","lessThan":"67d15c7aa0864dfd82325c7e7e7d8548b5224c7b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/qaic/qaic_data.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.85","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.21","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.9","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/qaic/qaic_data.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4b2a170c25862ad116bd31be6b9841646b4862e8"},{"url":"https://git.kernel.org/stable/c/b362fc904d264a88b4af20baae9e82491c285e9c"},{"url":"https://git.kernel.org/stable/c/57fae0c505f49bb1e3d5660cd2cc49697ed85f7c"},{"url":"https://git.kernel.org/stable/c/67d15c7aa0864dfd82325c7e7e7d8548b5224c7b"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached through DRM_IOCTL_QAIC_ATTACH_SLICE_BO on the /dev/accel/accelN character device, requiring local access to the machine hosting the Qualcomm Cloud AI 100 accelerator. There is no network-facing path to this code.\nAC:L - The attacker directly supplies the wrapping offset/size pair in the ioctl payload and the overflow is deterministic arithmetic with no race, timing, or memory-layout precondition. A single ioctl pair (attach slice, then execute BO) reliably programs the oversized DMA descriptor.\nPR:L - No capability check exists anywhere in drivers/accel/qaic/, and the ioctl is registered with flags 0 so drm_ioctl_permit() applies no root or auth gate; only an open fd on the accel node is needed. On the multi-tenant inference hosts this accelerator targets, that node is granted to ordinary unprivileged workload users.\nUI:N - The attacker performs the entire sequence itself with two ioctls on a device it opened. No victim action or cooperation is involved.\nS:U - The corruption occurs in host kernel memory under the same kernel security authority; this is a standard local kernel privilege-escalation primitive rather than a VM or IOMMU-boundary escape.\nC:H - A DMA_TO_DEVICE slice with the wrapped length makes the device read up to ~4 GiB of host memory past the buffer and copy it into accelerator memory, which the same unprivileged user can read back, yielding large-scale disclosure of kernel and other tenants' data.\nI:H - A DMA_FROM_DEVICE slice makes the device write ~4 GiB of attacker-controlled data beyond the 8 KiB buffer, giving a wide out-of-bounds write over kernel memory that is readily leveraged into control-flow hijack and privilege escalation.\nA:H - The multi-gigabyte overrun corrupts arbitrary kernel structures and page tables, reliably producing an oops or panic; with an IOMMU present it instead raises DMA faults that wedge or force a reset of the accelerator."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:55:56.125Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.85"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.13.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-10-01T17:10:27.696134Z","id":"CVE-2025-22001","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","type":"CWE","lang":"en","description":"CWE-190 Integer Overflow or Wraparound"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T17:10:29.970Z"}}]}}}