CVE-2026-63907 Details
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.
A double free vulnerability has been identified in the Linux kernel's UIO PCI Generic SVA implementation. The issue arises because the 'uio_pci_sva' function allocates memory for the 'uio_pci_sva_dev' structure using 'devm_kzalloc()' during the probe phase. However, it also calls 'kfree()' on this memory both when the probe encounters an error and during the device removal process. This explicit deallocation can lead to a double free situation, as 'devm_kzalloc()' allocations are automatically managed and freed when the device is detached. The vulnerability was discovered through static analysis and manual review, and has been addressed by removing the redundant 'kfree()' calls.
Users can apply the latest patches from the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No CVSS 3.x data is available for this CVE.
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/e344865bfca4eb37ed8d7ac5917226e49fcec7ce | kernel.org | |
| https://git.kernel.org/stable/c/f74c8696f14149d5e43cc28b015326a759c48f00 | kernel.org |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
No affected product data is available for this CVE.
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 19, 2026 | New CVE Received | kernel.org |