CVE-2024-43882exec: Fix ToCToU between perm check and set-uid/gid usage
Updated under an hour ago ()
Does this affect you?
It affects Linux and 5 other products. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
In the Linux kernel, the following vulnerability has been resolved: exec: Fix ToCToU between perm check and set-uid/gid usage When opening a file for exec via do_filp_open(), permission checking is done against the file's metadata at that moment, and on success, a file pointer is passed back. Much later in the execve() code path, the file metadata (specifically mode, uid, and gid) is used to determine if/how to set the uid and gid. However, those values may have changed since the permissions check, meaning the execution may gain unintended privileges. For example, if a file could change permissions from executable and not set-id: ---------x 1 root root 16048 Aug 7 13:16 target to set-id and non-executable: ---S------ 1 root root 16048 Aug 7 13:16 target it is possible to gain root privileges when execution should have been disallowed. While this race condition is rare in real-world scenarios, it has been observed (and proven exploitable) when package managers are updating the setuid bits of installed programs. Such files start with being world-executable but then are adjusted to be group-exec with a set-uid bit. For example, "chmod o-x,u+s target" makes "target" executable only by uid "root" and gid "cdrom", while also becoming setuid-root: -rwxr-xr-x 1 root cdrom 16048 Aug 7 13:16 target becomes: -rwsr-xr-- 1 root cdrom 16048 Aug 7 13:16 target But racing the chmod means users without group "cdrom" membership can get the permission to execute "target" just before the chmod, and when the chmod finishes, the exec reaches brpm_fill_uid(), and performs the setuid to root, violating the expressed authorization of "only cdrom group members can setuid to root". Re-check that we still have execute permissions in case the metadata has changed. It would be better to keep a copy from the perm-check time, but until we can do that refactoring, the least-bad option is to do a full inode_permission() call (under inode lock). It is understood that this is safe against dead-locks, but hardly optimal.
- CVSS
- 7.8 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-367
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Linux
- NVD analysis
- Modified
- Record last updated
- Oct 15, 2026
- First seen by InfoSec Signals
- Oct 15, 2026
Affected products
Linux Linux linux:linux (from the name) | from 9167b0b9a0ab7907191523f5a0528e3b9c288e21 before d5c3c7e26275a2d83b894d30f7582a42853a958f; 9167b0b9a0ab7907191523f5a0528e3b9c288e21 builds before 368f6985d46657b8b466a421dddcacd4051f7ada; from 9167b0b9a0ab7907191523f5a0528e3b9c288e21 before 15469d46ba34559bfe7e3de6659115778c624759; 9167b0b9a0ab7907191523f5a0528e3b9c288e21 builds before 9b424c5d4130d56312e2a3be17efb0928fec4d64; from 9167b0b9a0ab7907191523f5a0528e3b9c288e21 before f6cfc6bcfd5e1cf76115b6450516ea4c99897ae1; from 9167b0b9a0ab7907191523f5a0528e3b9c288e21 before d2a2a4714d80d09b0f8eb6438ab4224690b7121e; 9167b0b9a0ab7907191523f5a0528e3b9c288e21 builds before 90dfbba89ad4f0d9c9744ecbb1adac4aa2ff4f3e; from 9167b0b9a0ab7907191523f5a0528e3b9c288e21 before f50733b45d865f91db90919f8311e2127ce5a0cb | CNA record |
Siemens RUGGEDCOM RST2428P siemens:ruggedcom_rst2428p (from the name) | before V3.1 | CISA ADP |
Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family siemens:scalance_xc_300_xr_300_xc_400_xr_500wg_xr_500_family (from the name) | all versions not affected | CISA ADP |
Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family siemens:scalance_xcm_xrm_xch_xrh_300_family (from the name) | before V3.1 | CISA ADP |
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem siemens:simatic_s7_1500_tm_mfp_gnu_linux_subsystem (from the name) | before V1.1.1 | CISA ADP |
linux linux_kernel linux:linux_kernel | before 4.19.320; from 4.20 before 5.4.282; from 5.5 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.106; from 6.2 before 6.6.47; from 6.7 before 6.10.6; 6.11; and 2 more ranges | NVD |
References
- https://git.kernel.org/stable/c/d5c3c7e26275a2d83b894d30f7582a42853a958fpatch
- https://git.kernel.org/stable/c/368f6985d46657b8b466a421dddcacd4051f7adapatch
- https://git.kernel.org/stable/c/15469d46ba34559bfe7e3de6659115778c624759patch
- https://git.kernel.org/stable/c/9b424c5d4130d56312e2a3be17efb0928fec4d64patch
- https://git.kernel.org/stable/c/f6cfc6bcfd5e1cf76115b6450516ea4c99897ae1patch
- https://git.kernel.org/stable/c/d2a2a4714d80d09b0f8eb6438ab4224690b7121epatch
- https://git.kernel.org/stable/c/90dfbba89ad4f0d9c9744ecbb1adac4aa2ff4f3epatch
- https://git.kernel.org/stable/c/f50733b45d865f91db90919f8311e2127ce5a0cbpatch
- https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html
- https://cert-portal.siemens.com/productcert/html/ssa-613116.html
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.