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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2025-02-27T20:00:53.557Z
- Modified: 2026-06-17T08:44:18.457Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

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

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

(As written by CVE List.)

## Affected

- Linux Linux: from 1c8506d62624fbc57db75414a387f365da8422e9 before c6896bf4c611c3dd126f3e03685f2360a18b3d6f; from 1c8506d62624fbc57db75414a387f365da8422e9 before 70fcb25472d90dd3b87cbee74b9eb68670b0c7b8; from 1c8506d62624fbc57db75414a387f365da8422e9 before 352fafe97784e81a10a7c74bd508f71a19b53c2a; 6.8 (not affected: before 6.8; from 6.12.13 up to 6.12.*; from 6.13.2 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.8 before 6.12.13; from 6.13 before 6.13.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c6896bf4c611c3dd126f3e03685f2360a18b3d6f> (patch)
- <https://git.kernel.org/stable/c/70fcb25472d90dd3b87cbee74b9eb68670b0c7b8> (patch)
- <https://git.kernel.org/stable/c/352fafe97784e81a10a7c74bd508f71a19b53c2a> (patch)

## Sources

- CVE List: [CVE-2025-21798](https://www.cve.org/CVERecord?id=CVE-2025-21798), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21798](https://nvd.nist.gov/vuln/detail/CVE-2025-21798), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21798 · Whole record: https://cve.day/CVE-2025-21798.json · Rebuilt by cve.day 2026-11-25T22:58:54.601Z
