CVE-2025-21798 firewire: test: Fix potential null dereference in firewire kunit test
A missing null check in the Linux kernel firewire kunit test can cause a null pointer dereference, leading to a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-21798?
CVE-2025-21798 is a medium-severity vulnerability in Linux kernel, published on 27 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2025-21798?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21798?
Apply the vendor's patch.
Is CVE-2025-21798 being exploited?
There is no known exploitation of CVE-2025-21798 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-21798, DEBIAN-CVE-2025-21798, GHSA-82w6-hjxq-qjm2, ROOT-OS-UBUNTU-2404-CVE-2025-21798, UBUNTU-CVE-2025-21798.