CyberSecBulletin
CVE-2024-26934NVD status: Modified

Linux: Improper Locking

CVE-2024-26934 is a high-severity improper locking vulnerability in Linux, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions 8cbdd324b41528994027128207fae8100dff094f, 12d6a5681a0a5cecc2af7860f0a1613fa7c6e947, e451709573f8be904a8a72d0775bf114d7c291d9 as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.19% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to 8cbdd324b41528994027128207fae8100dff094f or 12d6a5681a0a5cecc2af7860f0a1613fa7c6e947 or e451709573f8be904a8a72d0775bf114d7c291d9 or 1b175bc579f46520b11ecda443bcd2ee4904f66a, whichever matches your release line, or a later version.
  2. Update SIMATIC S7-1500 TM MFP - GNU/Linux subsystem to V1.1.1 or a later version.
  3. Update Linux Kernel to 4.19.312 or 5.4.274 or 5.10.215 or 5.15.154, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux310d2b4124c073a2057ef9d952d4d938e9b1dfd9 up to, but not including, 8cbdd324b41528994027128207fae8100dff094f; 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 up to, but not including, 12d6a5681a0a5cecc2af7860f0a1613fa7c6e947; 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 up to, but not including, e451709573f8be904a8a72d0775bf114d7c291d9; 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 up to, but not including, 1b175bc579f46520b11ecda443bcd2ee4904f66a; 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 up to, but not including, ab062fa3dc69aea88fe62162c5881ba14b50ecc5; 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 up to, but not including, 122a06f1068bf5e39089863f4f60b1f5d4273384; 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 up to, but not including, dbdf66250d2d33e8b27352fcb901de79f3521057; 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 up to, but not including, 07acf979da33c721357ff27129edf74c23c036c6; and 2 more ranges8cbdd324b41528994027128207fae8100dff094f, 12d6a5681a0a5cecc2af7860f0a1613fa7c6e947, e451709573f8be904a8a72d0775bf114d7c291d9, 1b175bc579f46520b11ecda443bcd2ee4904f66a, ab062fa3dc69aea88fe62162c5881ba14b50ecc5, 122a06f1068bf5e39089863f4f60b1f5d4273384
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystembefore V1.1.1V1.1.1
LinuxLinux Kernel4.4 up to, but not including, 4.19.312; 4.20.0 up to, but not including, 5.4.274; 5.5.0 up to, but not including, 5.10.215; 5.11.0 up to, but not including, 5.15.154; 5.16.0 up to, but not including, 6.1.84; 6.2.0 up to, but not including, 6.6.24; 6.7.0 up to, but not including, 6.7.12; 6.8.0 up to, but not including, 6.8.3; and 1 more ranges4.19.312, 5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.6.24

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Official description

In the Linux kernel, the following vulnerability has been resolved: USB: core: Fix deadlock in usb_deauthorize_interface() Among the attribute file callback routines in drivers/usb/core/sysfs.c, the interface_authorized_store() function is the only one which acquires a device lock on an ancestor device: It calls usb_deauthorize_interface(), which locks the interface's parent USB device. The will lead to deadlock if another process already owns that lock and tries to remove the interface, whether through a configuration change or because the device has been disconnected. As part of the removal procedure, device_del() waits for all ongoing sysfs attribute callbacks to complete. But usb_deauthorize_interface() can't complete until the device lock has been released, and the lock won't be released until the removal has finished. The mechanism provided by sysfs to prevent this kind of deadlock is to use the sysfs_break_active_protection() function, which tells sysfs not to wait for the attribute callback. Reported-and-tested by: Yue Sun <[email protected]> Reported by: xingwei lee <[email protected]>

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Improper Locking

The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.

How developers prevent this class of flaw

  • Use industry standard APIs to implement locking mechanism.

More Improper Locking vulnerabilities (CWE-667)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Recent Improper Locking vulnerabilities

Spotted an error? Tell us.