Skip to content
5.5 Medium

CVE-2025-21846 In the Linux kernel, the following vulnerability has been resolved: acct: perform last write from workqueue In [1] it…

Description

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.

Affected products and versions

Product Affected versions Fixed in
Linux 6.14 earliest → < 6.14 6.14
Linux 6.13 earliest → < 6.13.5 6.13.5
Linux 6.12 earliest → < 6.12.17 6.12.17
Linux 6.6 earliest → < 6.6.80 6.6.80
Linux 6.1 earliest → < 6.1.130 6.1.130
Linux 5.15 earliest → < 5.15.179 5.15.179
Linux 5.10 earliest → < 5.10.235 5.10.235
Linux 5.4 earliest → < 5.4.291 5.4.291
Linux 2.6.12 No fix stated
Show the 4 other branches
Product Affected versions Fixed in
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem Versions not published
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP 3.1 3.1.7 → latest No fix stated
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP 3.1 3.1.7 → latest No fix stated
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP 3.1 3.1.7 → latest No fix stated
The 18286 CVEs of Linux →
Track this CVE