CVE-2025-21846
acct: perform last write from workqueue
Reported by linux · Published March 12, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools | Amazon Linux | 6.1.130-139.222.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.130-139.222.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.130-139.222.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.130-139.222.amzn2023 |
| linux_kernel | linux | 6.13.5, 6.12.17, 6.6.80, 6.1.130 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
| Linux | Linux | 2.6.12, 0, 5.4.291 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.6, 3.1.7 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.6, 3.1.7 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | 3.1.7, 3.1.6 |
| linux | linux_kernel | 2.6.12, 2.6.12, 2.6.12 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.7, 3.1.6 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.6, 3.1.7 |
| amazon:2023 | kernel | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.7, 3.1.6 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Linux | Linux | 6.13.5, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | 3.1.6, 3.1.7 |
…and 7 more
Timeline
- Mar 11, 2025 CVE Published
- Mar 13, 2025 EPSS Score (30 in total, the first dated here)
- Mar 23, 2025 Coalition ESS Score (8 in total, the first dated here)
- Dec 22, 2025 Security Advisory (175 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (174 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-21846
vulnetix vdb fixes CVE-2025-21846
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21846/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html url
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html url
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html url
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html url
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html url
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html url