CVE-2025-21846
acct: perform last write from workqueue
Mitigation
- Upgrade Linux to 56d5f3eba3f5de0efdd556de4ef381e109b973a9 or later.
Who should check
- Anyone running Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b03782ae707cc45e65242c7cddd8e28f1c22cde5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d5b936cfa4b0d5670ca7420ef165a074bc008eb; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5ee8da9bea70dda492d61f075658939af33d8410; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5c928e14a2ccd99462f2351ead627b58075bb736; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5a59ced8ffc71973d42c82484a719c8f6ac8f7f7; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a8136afca090412a36429cb6c2543c714d9c0f84; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 56d5f3eba3f5de0efdd556de4ef381e109b973a9
- Anyone running Linux 2.6.12
Vulnerability facts
- Affected
- Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b03782ae707cc45e65242c7cddd8e28f1c22cde5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d5b936cfa4b0d5670ca7420ef165a074bc008eb; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5ee8da9bea70dda492d61f075658939af33d8410; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5c928e14a2ccd99462f2351ead627b58075bb736; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5a59ced8ffc71973d42c82484a719c8f6ac8f7f7; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a8136afca090412a36429cb6c2543c714d9c0f84; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 56d5f3eba3f5de0efdd556de4ef381e109b973a9; Linux 2.6.12
- Fixed in
- Linux 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e, Linux 5d5b936cfa4b0d5670ca7420ef165a074bc008eb, Linux 5ee8da9bea70dda492d61f075658939af33d8410, Linux 5c928e14a2ccd99462f2351ead627b58075bb736, Linux 5a59ced8ffc71973d42c82484a719c8f6ac8f7f7, Linux 56d5f3eba3f5de0efdd556de4ef381e109b973a9
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-476
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b03782ae707cc45e65242c7cddd8e28f1c22cde5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d5b936cfa4b0d5670ca7420ef165a074bc008eb; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5ee8da9bea70dda492d61f075658939af33d8410; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5c928e14a2ccd99462f2351ead627b58075bb736; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5a59ced8ffc71973d42c82484a719c8f6ac8f7f7; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a8136afca090412a36429cb6c2543c714d9c0f84; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 56d5f3eba3f5de0efdd556de4ef381e109b973a9 | — | cvelist |
| Linux | 2.6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21846. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21846.md Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b03782ae707cc45e65242c7cddd8e28f1c22cde5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d5b936cfa4b0d5670ca7420ef165a074bc008eb; >= 1da177e4c3f41524e886b7f… Fixed in: Linux 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e, Linux 5d5b936cfa4b0d5670ca7420ef165a074bc008eb, Linux 5ee8da9bea70dda492d61f075658939af33d8410, Linux 5c928e14a2ccd99462f2351ead627b58075bb736, Linux 5a59ced8ffc71973d42c82484a719c8f6ac8f7f7, Linux 56d5f3eba3f5de0efdd556de4ef381e109b973a9 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e
- https://git.kernel.org/stable/c/b03782ae707cc45e65242c7cddd8e28f1c22cde5
- https://git.kernel.org/stable/c/5d5b936cfa4b0d5670ca7420ef165a074bc008eb
- https://git.kernel.org/stable/c/5ee8da9bea70dda492d61f075658939af33d8410
- https://git.kernel.org/stable/c/5c928e14a2ccd99462f2351ead627b58075bb736
- https://git.kernel.org/stable/c/5a59ced8ffc71973d42c82484a719c8f6ac8f7f7
- https://git.kernel.org/stable/c/a8136afca090412a36429cb6c2543c714d9c0f84
- https://git.kernel.org/stable/c/56d5f3eba3f5de0efdd556de4ef381e109b973a9
Other
- 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
FAQ
Is CVE-2025-21846 being exploited?
There is no confirmed exploitation: CVE-2025-21846 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21846?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21846?
Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b03782ae707cc45e65242c7cddd8e28f1c22cde5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d5b936cfa4b0d5670ca7420ef165a074bc008eb; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5ee8da9bea70dda492d61f075658939af33d8410; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5c928e14a2ccd99462f2351ead627b58075bb736; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5a59ced8ffc71973d42c82484a719c8f6ac8f7f7; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a8136afca090412a36429cb6c2543c714d9c0f84; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 56d5f3eba3f5de0efdd556de4ef381e109b973a9; Linux 2.6.12.
Is there a fix for CVE-2025-21846?
Yes. Fixed in Linux 8acbf4a88c6a98c8ed00afd1a7d1abcca9b4735e, Linux 5d5b936cfa4b0d5670ca7420ef165a074bc008eb, Linux 5ee8da9bea70dda492d61f075658939af33d8410, Linux 5c928e14a2ccd99462f2351ead627b58075bb736, Linux 5a59ced8ffc71973d42c82484a719c8f6ac8f7f7, Linux 56d5f3eba3f5de0efdd556de4ef381e109b973a9. Upgrade Linux to 56d5f3eba3f5de0efdd556de4ef381e109b973a9 or later.
How do I check if I'm affected by CVE-2025-21846?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.