First published: Wed Mar 12 2025(Updated: )
In the Linux kernel, the following vulnerability has been resolved: acct: perform last write from workqueue In [1] it was reported that the acct(2) system call can be used to trigger NULL deref in cases where it is set to write to a file that triggers an internal lookup. This can e.g., happen when pointing acc(2) to /sys/power/resume. At the point the where the write to this file happens the calling task has already exited and called exit_fs(). A lookup will thus trigger a NULL-deref when accessing current->fs. Reorganize the code so that the the final write happens from the workqueue but with the caller's credentials. This preserves the (strange) permission model and has almost no regression risk. This api should stop to exist though.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | ||
Linux Kernel | >=2.6.12<6.1.130 | |
Linux Kernel | >=6.2<6.6.80 | |
Linux Kernel | >=6.7<6.12.17 | |
Linux Kernel | >=6.13<6.13.5 | |
Linux Kernel | =6.14-rc1 | |
Linux Kernel | =6.14-rc2 | |
Linux Kernel | =6.14-rc3 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-21846 is classified as a high-severity vulnerability due to the potential for NULL dereference leading to application crashes.
CVE-2025-21846 affects the Linux kernel, specifically installations that utilize the acct(2) system call.
To fix CVE-2025-21846, you should update your Linux kernel to the latest stable version that addresses this vulnerability.
CVE-2025-21846 poses risks of system instability and potential denial of service due to application crashes linked to the NULL dereference.
Yes, CVE-2025-21846 has been resolved in recent Linux kernel updates, addressing the identified vulnerability.