VDB

CVE-2025-21846

CVE-2025-21846 PUBLISHED CVSS 5.5 MEDIUM

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.

PackageEcosystemFixed in
kernel-toolsAmazon Linux6.1.130-139.222.amzn2023
kernel-modules-extraAmazon Linux6.1.130-139.222.amzn2023
kernel-develAmazon Linux6.1.130-139.222.amzn2023
kernel-libbpf-develAmazon Linux6.1.130-139.222.amzn2023
linux_kernellinux6.13.5, 6.12.17, 6.6.80, 6.1.130

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
LinuxLinux2.6.12, 0, 5.4.291
amazon:2023kernel-tools0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.6, 3.1.7
amazon:2023kernel-modules-extra0
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-devel0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.6, 3.1.7
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.7, 3.1.6
linuxlinux_kernel2.6.12, 2.6.12, 2.6.12
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.7, 3.1.6
amazon:2023kernel-libbpf-static0
amazon:2023kernel-tools-devel0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.6, 3.1.7
amazon:2023kernel0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.7, 3.1.6
amazon:2023kernel-modules-extra-common0
LinuxLinux6.13.5, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
SiemensSIMATIC 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›