CVE-2025-21934

rapidio: fix an API misues when rio_add_net() fails

State
Published
Severity
7.8 High
Published
Apr 1, 2025
Updated
Aug 5, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • e8de370188d098bb49483c287b44925957c3c9b6 to before d4ec862ce80f64db923a1d942b5d11cf6fc87d36Affected
  • e8de370188d098bb49483c287b44925957c3c9b6 to before 88ddad53e4cfb6de861c6d4fb7b25427f46baed5Affected
  • e8de370188d098bb49483c287b44925957c3c9b6 to before cdd9f58f7fe41a55fae4305ea51fc234769fd466Affected
  • e8de370188d098bb49483c287b44925957c3c9b6 to before a5f5e520e8fbc6294020ff8afa36f684d92c6e6aAffected
  • e8de370188d098bb49483c287b44925957c3c9b6 to before 2537f01d57f08c527e40bbb5862aa6ff43344898Affected
  • e8de370188d098bb49483c287b44925957c3c9b6 to before 22e4977141dfc6d109bf29b495bf2187b4250990Affected
  • e8de370188d098bb49483c287b44925957c3c9b6 to before f0aa4ee1cbbf7789907e5a3f6810de01c146c211Affected
  • e8de370188d098bb49483c287b44925957c3c9b6 to before b2ef51c74b0171fde7eb69b6152d3d2f743ef269Affected
LinuxLinux
  • 4.6Affected
  • before 4.6Not affected
  • 5.4.291 through 5.4.*Not affected
  • 5.10.235 through 5.10.*Not affected
  • 5.15.179 through 5.15.*Not affected
  • 6.1.131 through 6.1.*Not affected
  • 6.6.83 through 6.6.*Not affected
  • 6.12.19 through 6.12.*Not affected
  • 6.13.7 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.