# CVE-2026-63907: uio: uio_pci_generic_sva: fix double free of devm_kzalloc() memory

- 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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-19T14:55:13.652Z
- Modified: 2026-10-30T14:30:10.193Z
- Weaknesses: CWE-415
- Assigned by: Linux

## Description

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

uio: uio_pci_generic_sva: fix double free of devm_kzalloc() memory

uio_pci_sva allocates struct uio_pci_sva_dev with devm_kzalloc() in
probe(), but then calls kfree(udev) both on the probe() error path
(label out_free) and again in remove().

Because devm_kzalloc() allocations are devres-managed and are freed
automatically when the device is detached (including after a failing
probe() and during driver unbind), the explicit kfree() can lead to a
double free.

If probe() fails after devm_kzalloc(), the error path frees udev and
devres cleanup will free it again when the core unwinds the partially
bound device. On normal driver removal, remove() frees udev and devres
will free it again when the device is detached.

This issue was identified by a static analysis tool I developed and
confirmed by manual review. Fix by removing the manual kfree() calls
and dropping the now-unused label.

(As written by CVE List.)

## Affected

- Linux Linux: from 3397c3cd859a2c51962ad032dcf97961d42f9db2 before e344865bfca4eb37ed8d7ac5917226e49fcec7ce; from 3397c3cd859a2c51962ad032dcf97961d42f9db2 before f74c8696f14149d5e43cc28b015326a759c48f00; 6.19 (not affected: before 6.19; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.19 before 7.0.12; 7.1

## References

- <https://git.kernel.org/stable/c/e344865bfca4eb37ed8d7ac5917226e49fcec7ce> (patch)
- <https://git.kernel.org/stable/c/f74c8696f14149d5e43cc28b015326a759c48f00> (patch)

## Sources

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

---

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