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

- 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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-03-12T09:42:02.635Z
- Modified: 2026-11-10T13:17:36.790Z
- 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:

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b03782ae707cc45e65242c7cddd8e28f1c22cde5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5d5b936cfa4b0d5670ca7420ef165a074bc008eb; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5ee8da9bea70dda492d61f075658939af33d8410; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5c928e14a2ccd99462f2351ead627b58075bb736; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5a59ced8ffc71973d42c82484a719c8f6ac8f7f7; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a8136afca090412a36429cb6c2543c714d9c0f84; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 56d5f3eba3f5de0efdd556de4ef381e109b973a9; 2.6.12 (not affected: before 2.6.12; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.130 up to 6.1.*; from 6.6.80 up to 6.6.*; from 6.12.17 up to 6.12.*; from 6.13.5 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 2.6.12 before 6.1.130; from 6.2 before 6.6.80; from 6.7 before 6.12.17; from 6.13 before 6.13.5; 6.14

## 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/8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e> (patch)
- <https://git.kernel.org/stable/c/b03782ae707cc45e65242c7cddd8e28f1c22cde5> (patch)
- <https://git.kernel.org/stable/c/5d5b936cfa4b0d5670ca7420ef165a074bc008eb> (patch)
- <https://git.kernel.org/stable/c/5ee8da9bea70dda492d61f075658939af33d8410> (patch)
- <https://git.kernel.org/stable/c/5c928e14a2ccd99462f2351ead627b58075bb736> (patch)
- <https://git.kernel.org/stable/c/5a59ced8ffc71973d42c82484a719c8f6ac8f7f7> (patch)
- <https://git.kernel.org/stable/c/a8136afca090412a36429cb6c2543c714d9c0f84> (patch)
- <https://git.kernel.org/stable/c/56d5f3eba3f5de0efdd556de4ef381e109b973a9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

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

---

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