CVE-2025-21798: firewire: test: Fix potential null dereference in firewire kunit test

Published Feb 27, 2025
·
Updated

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

firewire: test: Fix potential null dereference in firewire kunit test

kunitkzalloc() may return a NULL pointer, dereferencing it without NULL check may lead to NULL dereference. Add a NULL check for teststate.

Affected Software

3 affected components
Linux Linux kernel>=6.8<6.12.13
Linux Linux kernel>=6.13<6.13.2
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Add a NULL check for test_state in the Linux kernel firewire KUnit test before dereferencing it, because kunit_kzalloc() may return a NULL pointer.

Event History

Feb 27, 2025
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21798?

CVE-2025-21798 is classified as a medium severity vulnerability due to the potential for a NULL dereference in the Linux kernel.

2

How do I fix CVE-2025-21798?

To fix CVE-2025-21798, users should upgrade to the latest Linux kernel version where this vulnerability has been addressed.

3

What could happen if CVE-2025-21798 is exploited?

Exploiting CVE-2025-21798 could result in a system crash or unexpected behavior due to a NULL pointer dereference.

4

Which versions of the Linux kernel are affected by CVE-2025-21798?

CVE-2025-21798 affects previous versions of the Linux kernel prior to the patch that mitigates the vulnerability.

5

What specific area of the Linux kernel is impacted by CVE-2025-21798?

CVE-2025-21798 impacts the FireWire subsystem and specifically the kunit testing framework within the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203