CVE-2025-21934: rapidio: fix an API misues when rio_add_net() fails
Vulnerability summary
CVE-2025-21934 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 16.9% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 62 · Related 59Timeline
- 01-04-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: rapidio: fix an API misues when rio_add_net() fails rio_add_net() calls device_register() and fails when device_register() fails. Thus, put_device() should be used rather than kfree(). Add "mport->net = NULL;" to avoid a use after free issue.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.25% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu137 products
- linuxAll versions (No fix recorded) | < 5.4.0-216.236 | < 5.15.0-140.150 | < 6.8.0-84.84
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.4.0-1146.156 | < 5.15.0-1084.91 | < 6.8.0-1039.41
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ e8de370188d098bb49483c287b44925957c3c9b6, < d4ec862ce80f64db923a1d942b5d11cf6fc87d36 | ≥ e8de370188d098bb49483c287b44925957c3c9b6, < 88ddad53e4cfb6de861c6d4fb7b25427f46baed5 | ≥ e8de370188d098bb49483c287b44925957c3c9b6, < cdd9f58f7fe41a55fae4305ea51fc234769fd466 | ≥ e8de370188d098bb49483c287b44925957c3c9b6, < a5f5e520e8fbc6294020ff8afa36f684d92c6e6a | ≥ e8de370188d098bb49483c287b44925957c3c9b6, < 2537f01d57f08c527e40bbb5862aa6ff43344898 | ≥ e8de370188d098bb49483c287b44925957c3c9b6, < 22e4977141dfc6d109bf29b495bf2187b4250990 | ≥ e8de370188d098bb49483c287b44925957c3c9b6, < f0aa4ee1cbbf7789907e5a3f6810de01c146c211 | ≥ e8de370188d098bb49483c287b44925957c3c9b6, < b2ef51c74b0171fde7eb69b6152d3d2f743ef269 | 4.6
- linux_kernel≥ 4.6, < 5.4.291 | ≥ 5.5, < 5.10.235 | ≥ 5.11, < 5.15.179 | ≥ 5.16, < 6.1.131 | ≥ 6.2, < 6.6.83 | ≥ 6.7, < 6.12.19 | ≥ 6.13, < 6.13.7 | 6.14:rc1 | 6.14:rc2 | 6.14:rc3 | 6.14:rc4 | 6.14:rc5
Debian1 product
- linux< 6.1.133-1 | < 6.12.19-1
3 vendors · 140 products