# CVE-2025-38182: ublk: santizize the arguments from userspace when adding a device

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:09.637Z
- Modified: 2026-10-30T13:18:01.333Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ublk: santizize the arguments from userspace when adding a device

Sanity check the values for queue depth and number of queues
we get from userspace when adding a device.

(As written by CVE List.)

## Affected

- Linux Linux: from 71f28f3136aff5890cd56de78abc673f8393cad9 before a52d4e28f643eb4ffc7ccb1de9bd47d876804f1f; from 71f28f3136aff5890cd56de78abc673f8393cad9 before 3162d8235c8c4d585525cee8a59d1c180940a968; from 71f28f3136aff5890cd56de78abc673f8393cad9 before 0f8df5d6f25ac17c52a8bc6418e60a3e63130550; from 71f28f3136aff5890cd56de78abc673f8393cad9 before e2b2b7cf6368580114851cb3932f2ad9fbf23386; from 71f28f3136aff5890cd56de78abc673f8393cad9 before 8c8472855884355caf3d8e0c50adf825f83454b2; 6.0 (not affected: before 6.0; from 6.1.191 up to 6.1.*; from 6.6.95 up to 6.6.*; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.0 before 6.6.95; from 6.7 before 6.12.35; from 6.13 before 6.15.4; 6.16

## References

- <https://git.kernel.org/stable/c/a52d4e28f643eb4ffc7ccb1de9bd47d876804f1f>
- <https://git.kernel.org/stable/c/3162d8235c8c4d585525cee8a59d1c180940a968> (patch)
- <https://git.kernel.org/stable/c/0f8df5d6f25ac17c52a8bc6418e60a3e63130550> (patch)
- <https://git.kernel.org/stable/c/e2b2b7cf6368580114851cb3932f2ad9fbf23386> (patch)
- <https://git.kernel.org/stable/c/8c8472855884355caf3d8e0c50adf825f83454b2> (patch)

## Sources

- CVE List: [CVE-2025-38182](https://www.cve.org/CVERecord?id=CVE-2025-38182), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-38182](https://nvd.nist.gov/vuln/detail/CVE-2025-38182), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-38182 · Whole record: https://cve.day/CVE-2025-38182.json · Rebuilt by cve.day 2026-11-25T22:59:00.627Z
