CWE
476
Advisory Published
Updated

CVE-2025-21846: acct: perform last write from workqueue

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-21846?

    CVE-2025-21846 is classified as a high-severity vulnerability due to the potential for NULL dereference leading to application crashes.

  • What systems are affected by CVE-2025-21846?

    CVE-2025-21846 affects the Linux kernel, specifically installations that utilize the acct(2) system call.

  • How do I fix CVE-2025-21846?

    To fix CVE-2025-21846, you should update your Linux kernel to the latest stable version that addresses this vulnerability.

  • What risks does CVE-2025-21846 pose to my system?

    CVE-2025-21846 poses risks of system instability and potential denial of service due to application crashes linked to the NULL dereference.

  • Has CVE-2025-21846 been mitigated?

    Yes, CVE-2025-21846 has been resolved in recent Linux kernel updates, addressing the identified vulnerability.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203