CVE-2024-26934
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 <samsun1006219@gmail.com> Reported by: xingwei lee <xrivendell7@gmail.com>
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: alma — https://errata.almalinux.org/8/ALSA-2024-3627.html
Vendor advisory: alma — https://access.redhat.com/errata/RHSA-2024:3627
Vendor advisory: alma — https://errata.almalinux.org/8/ALSA-2024-3618.html
Vendor advisory: alma — https://bugzilla.redhat.com/2278537
Vendor advisory: alma — https://bugzilla.redhat.com/2278431
Vendor advisory: alma — https://bugzilla.redhat.com/2278417
Vendor advisory: alma — https://bugzilla.redhat.com/2278409
Vendor advisory: alma — https://bugzilla.redhat.com/2278398
Vendor advisory: alma — https://bugzilla.redhat.com/2278356
Vendor advisory: alma — https://bugzilla.redhat.com/2278314
Vendor advisory: alma — https://bugzilla.redhat.com/2278268
Vendor advisory: alma — https://bugzilla.redhat.com/2278240
Vendor advisory: alma — https://bugzilla.redhat.com/2278237
Vendor advisory: alma — https://bugzilla.redhat.com/2278169
Vendor advisory: alma — https://bugzilla.redhat.com/2275777
Vendor advisory: alma — https://bugzilla.redhat.com/2275707
Vendor advisory: alma — https://bugzilla.redhat.com/2275666
Vendor advisory: alma — https://bugzilla.redhat.com/2275655
Vendor advisory: alma — https://bugzilla.redhat.com/2275645
Vendor advisory: alma — https://bugzilla.redhat.com/2274624
Vendor advisory: alma — https://bugzilla.redhat.com/2273262
Vendor advisory: alma — https://bugzilla.redhat.com/2273260
Vendor advisory: alma — https://bugzilla.redhat.com/2273223
Vendor advisory: alma — https://bugzilla.redhat.com/2273094
Vendor advisory: alma — https://bugzilla.redhat.com/2273092
Vendor advisory: alma — https://bugzilla.redhat.com/2272791
Vendor advisory: alma — https://bugzilla.redhat.com/2272780
Vendor advisory: alma — https://bugzilla.redhat.com/2271476
Vendor advisory: alma — https://bugzilla.redhat.com/2271469
Vendor advisory: alma — https://bugzilla.redhat.com/2270881
Vendor advisory: alma — https://bugzilla.redhat.com/2270879
Vendor advisory: alma — https://bugzilla.redhat.com/2270080
Vendor advisory: alma — https://bugzilla.redhat.com/2269856
Vendor advisory: alma — https://bugzilla.redhat.com/2269213
Vendor advisory: alma — https://bugzilla.redhat.com/2268317
Vendor advisory: alma — https://bugzilla.redhat.com/2268315
Vendor advisory: alma — https://bugzilla.redhat.com/2268309
Vendor advisory: alma — https://bugzilla.redhat.com/2268293
Vendor advisory: alma — https://bugzilla.redhat.com/2268291
Vendor advisory: alma — https://bugzilla.redhat.com/2267804
Vendor advisory: alma — https://bugzilla.redhat.com/2267797
Vendor advisory: alma — https://bugzilla.redhat.com/2267789
Vendor advisory: alma — https://bugzilla.redhat.com/2267758
Vendor advisory: alma — https://bugzilla.redhat.com/2267724
Vendor advisory: alma — https://bugzilla.redhat.com/2267705
Vendor advisory: alma — https://bugzilla.redhat.com/2267509
Vendor advisory: alma — https://bugzilla.redhat.com/2267355
Vendor advisory: alma — https://bugzilla.redhat.com/2267185
Vendor advisory: alma — https://bugzilla.redhat.com/2267038
Vendor advisory: alma — https://bugzilla.redhat.com/2266841
Vendor advisory: alma — https://bugzilla.redhat.com/2266746
Vendor advisory: alma — https://bugzilla.redhat.com/2266446
Vendor advisory: alma — https://bugzilla.redhat.com/2266296
Vendor advisory: alma — https://bugzilla.redhat.com/2265833
Vendor advisory: alma — https://bugzilla.redhat.com/2265654
Vendor advisory: alma — https://bugzilla.redhat.com/2265646
Vendor advisory: alma — https://bugzilla.redhat.com/2265271
Vendor advisory: alma — https://bugzilla.redhat.com/2263875
Vendor advisory: alma — https://bugzilla.redhat.com/2257406
Vendor advisory: alma — https://bugzilla.redhat.com/2250843
Vendor advisory: alma — https://access.redhat.com/errata/RHSA-2024:3618
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-26934
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2024-26934.html
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2024:3618
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2024:3627
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/e451709573f8be904a8a72d0775bf114d7c291d9
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/dbdf66250d2d33e8b27352fcb901de79f3521057
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/ab062fa3dc69aea88fe62162c5881ba14b50ecc5
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/8cbdd324b41528994027128207fae8100dff094f
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/80ba43e9f799cbdd83842fc27db667289b3150f5
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/1b175bc579f46520b11ecda443bcd2ee4904f66a
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/12d6a5681a0a5cecc2af7860f0a1613fa7c6e947
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/122a06f1068bf5e39089863f4f60b1f5d4273384
Vendor advisory: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — https://git.kernel.org/stable/c/07acf979da33c721357ff27129edf74c23c036c6
Vendor advisory: redhat — https://access.redhat.com/errata/RHSA-2024:9315
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rhel | 9 | fixed | |
| rocky | 8 | fixed | |
| sles | affected | | |
| debian | bookworm | fixed | 6.1.85-1 |
| debian | bullseye | fixed | 5.10.216-1 |
| debian | forky | fixed | 6.7.12-1 |
| debian | sid | fixed | 6.7.12-1 |
| debian | trixie | fixed | 6.7.12-1 |
| linux-kernel | affected | 4.19.312 | |
| linux-kernel | 6.9 | affected | |
| almalinux | 8 | fixed | kernel-abi-stablelists-4.18.0-553.5.1.el8_10.noarch.rpm |
References
- https://access.redhat.com/errata/RHSA-2024:9315
- https://git.kernel.org/stable/c/07acf979da33c721357ff27129edf74c23c036c6
- https://git.kernel.org/stable/c/122a06f1068bf5e39089863f4f60b1f5d4273384
- https://git.kernel.org/stable/c/12d6a5681a0a5cecc2af7860f0a1613fa7c6e947
- https://git.kernel.org/stable/c/1b175bc579f46520b11ecda443bcd2ee4904f66a
- https://git.kernel.org/stable/c/80ba43e9f799cbdd83842fc27db667289b3150f5
- https://git.kernel.org/stable/c/8cbdd324b41528994027128207fae8100dff094f
- https://git.kernel.org/stable/c/ab062fa3dc69aea88fe62162c5881ba14b50ecc5
- https://git.kernel.org/stable/c/dbdf66250d2d33e8b27352fcb901de79f3521057
- https://git.kernel.org/stable/c/e451709573f8be904a8a72d0775bf114d7c291d9
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://errata.rockylinux.org/RLSA-2024:3627
- https://errata.rockylinux.org/RLSA-2024:3618
- https://www.suse.com/security/cve/CVE-2024-26934.html
- https://security-tracker.debian.org/tracker/CVE-2024-26934
- https://access.redhat.com/errata/RHSA-2024:3618
- https://bugzilla.redhat.com/2250843
- https://bugzilla.redhat.com/2257406
- https://bugzilla.redhat.com/2263875
- https://bugzilla.redhat.com/2265271
- https://bugzilla.redhat.com/2265646
- https://bugzilla.redhat.com/2265654
- https://bugzilla.redhat.com/2265833
CWEs
CWE-667
Verify integrity in audit chain (admin only). AS-IS.