CVE-2024-38613
publishedm68k: Fix spinlock race in kernel thread creation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux533e6903bea0440816a0f517b0845ccea4cc7917 to < 2a8d1d95302c7d52c6ac8fa5cb4a6948ae0d3a14 · 533e6903bea0440816a0f517b0845ccea4cc7917 to < 5213cc01d0464c011fdc09f318705603ed3a746b · 533e6903bea0440816a0f517b0845ccea4cc7917 to < 4eeffecc8e3cce25bb559502c2fd94a948bcde82 · 533e6903bea0440816a0f517b0845ccea4cc7917 to < 77b2b67a0f8bce260c53907e5749d61466d90c87 · 533e6903bea0440816a0f517b0845ccea4cc7917 to < 0d9ae1253535f6e85a016e09c25ecbe6f7f59ef0 · 533e6903bea0440816a0f517b0845ccea4cc7917 to < f3baf0f4f92af32943ebf27b960e0552c6c082fd · 533e6903bea0440816a0f517b0845ccea4cc7917 to < f1d4274a84c069be0f6098ab10c3443fc1f7134c · 533e6903bea0440816a0f517b0845ccea4cc7917 to < 95f00caf767b5968c2c51083957b38be4748a78a · 533e6903bea0440816a0f517b0845ccea4cc7917 to < da89ce46f02470ef08f0f580755d14d547da59ed · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.7 (affected) · 0 to < 3.7 (unaffected · semver) · 4.19.316 through 4.19.* (unaffected · semver) · 5.4.278 through 5.4.* (unaffected · semver) · 5.10.219 through 5.10.* (unaffected · semver) · 5.15.161 through 5.15.* (unaffected · semver) · 6.1.93 through 6.1.* (unaffected · semver) · 6.6.33 through 6.6.* (unaffected · semver) · 6.8.12 through 6.8.* (unaffected · semver) · 6.9.3 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bullseye | linux | Advisory build | 5.10.221-1 | DSA-5730-1 |
| Oracle Linux | 7 | kernel-uekaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Ubuntu | bionic | block-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Oracle Linux | 7 | kernel-uekaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 7 | kernel-uekx86_64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uekx86_64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-containerx86_64 | Advisory build | 0:5.4.17-2136.334.6.el7 | ELSA-2024-12585 |
| Oracle Linux | 7 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.4.17-2136.334.6.el7 | ELSA-2024-12585 |
| Oracle Linux | 7 | kernel-uek-debugaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-debugaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-debugx86_64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-debugx86_64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-debug-develaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-debug-develx86_64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-develaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-develaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-develx86_64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-develx86_64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-docaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-docx86_64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-docx86_64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-headersaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-toolsaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-toolsaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-toolsx86_64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-toolsx86_64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-tools-libsaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | kernel-uek-tools-libsaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | kernel-uek-tools-libs-develaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | perfaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | perfaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 7 | python-perfaarch64 | Advisory build | 0:4.14.35-2047.540.4.1.el7uek | ELSA-2024-12611 |
| Oracle Linux | 7 | python-perfaarch64 | Advisory build | 0:5.4.17-2136.334.6.el7uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.4.17-2136.334.6.el8 | ELSA-2024-12584 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.4.17-2136.334.6.el8 | ELSA-2024-12584 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.4.17-2136.334.6.el8uek | ELSA-2024-12581 |
| Ubuntu | bionic | crypto-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | dasd-extra-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | dasd-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | fat-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | fb-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | firewire-core-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | floppy-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | fs-core-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | fs-secondary-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | input-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | ipmi-modules-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | kernel-image-5.4.0-192-generic-di | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-aws-5.4 | Advisory build | 5.4.0-1130.140~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-aws-5.4-cloud-tools-5.4.0-1130 | Advisory build | 5.4.0-1130.140~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-aws-5.4-headers-5.4.0-1130 | Advisory build | 5.4.0-1130.140~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-aws-5.4-tools-5.4.0-1130 | Advisory build | 5.4.0-1130.140~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-azure-5.4 | Advisory build | 5.4.0-1135.142~18.04.1 | USN-6951-3 |
| Ubuntu | bionic | linux-azure-5.4-cloud-tools-5.4.0-1135 | Advisory build | 5.4.0-1135.142~18.04.1 | USN-6951-3 |
| Ubuntu | bionic | linux-azure-5.4-headers-5.4.0-1135 | Advisory build | 5.4.0-1135.142~18.04.1 | USN-6951-3 |
| Ubuntu | bionic | linux-azure-5.4-tools-5.4.0-1135 | Advisory build | 5.4.0-1135.142~18.04.1 | USN-6951-3 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1077-ibm | Advisory build | 5.4.0-1077.82~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1114-raspi | Advisory build | 5.4.0-1114.126~18.04.1 | USN-6979-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1129-oracle | Advisory build | 5.4.0-1129.138~18.04.1 | USN-6953-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1130-aws | Advisory build | 5.4.0-1130.140~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1134-gcp | Advisory build | 5.4.0-1134.143~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1135-azure | Advisory build | 5.4.0-1135.142~18.04.1 | USN-6951-3 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-192-generic | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-192-lowlatency | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-cloud-tools-5.4.0-1130-aws | Advisory build | 5.4.0-1130.140~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-cloud-tools-5.4.0-1135-azure | Advisory build | 5.4.0-1135.142~18.04.1 | USN-6951-3 |
| Ubuntu | bionic | linux-cloud-tools-5.4.0-192-generic | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-cloud-tools-5.4.0-192-lowlatency | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-gcp-5.4 | Advisory build | 5.4.0-1134.143~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-gcp-5.4-headers-5.4.0-1134 | Advisory build | 5.4.0-1134.143~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-gcp-5.4-tools-5.4.0-1134 | Advisory build | 5.4.0-1134.143~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1077-ibm | Advisory build | 5.4.0-1077.82~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1114-raspi | Advisory build | 5.4.0-1114.126~18.04.1 | USN-6979-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1129-oracle | Advisory build | 5.4.0-1129.138~18.04.1 | USN-6953-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1130-aws | Advisory build | 5.4.0-1130.140~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1134-gcp | Advisory build | 5.4.0-1134.143~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1135-azure | Advisory build | 5.4.0-1135.142~18.04.1 | USN-6951-3 |
| Ubuntu | bionic | linux-headers-5.4.0-192-generic | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-headers-5.4.0-192-lowlatency | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-hwe-5.4 | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-hwe-5.4-cloud-tools-5.4.0-192 | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-hwe-5.4-cloud-tools-common | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-hwe-5.4-headers-5.4.0-192 | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-hwe-5.4-source-5.4.0 | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-hwe-5.4-tools-5.4.0-192 | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-hwe-5.4-tools-common | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-hwe-5.4-udebs-generic | Advisory build | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-ibm-5.4 | Advisory build | 5.4.0-1077.82~18.04.1 | USN-6951-1 |
| Ubuntu | bionic | linux-ibm-5.4-cloud-tools-common | Advisory build | 5.4.0-1077.82~18.04.1 | USN-6951-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: m68k: Fix spinlock race in kernel thread creation Context switching does take care to retain the correct lock owner across the switch from 'prev' to 'next' tasks. This does rely on interrupts remaining disabled for the entire duration of the switch. This condition is guaranteed for normal process creation and context switching between already running processes, because both 'prev' and 'next' already have interrupts disabled in their saved copies of the status register. The situation is different for newly created kernel threads. The status register is set to PS_S in copy_thread(), which does leave the IPL at 0. Upon restoring the 'next' thread's status register in switch_to() aka resume(), interrupts then become enabled prematurely. resume() then returns via ret_from_kernel_thread() and schedule_tail() where run queue lock is released (see finish_task_switch() and finish_lock_switch()). A timer interrupt calling scheduler_tick() before the lock is released in finish_task_switch() will find the lock already taken, with the current task as lock owner. This causes a spinlock recursion warning as reported by Guenter Roeck. As far as I can ascertain, this race has been opened in commit 533e6903bea0 ("m68k: split ret_from_fork(), simplify kernel_thread()") but I haven't done a detailed study of kernel history so it may well predate that commit. Interrupts cannot be disabled in the saved status register copy for kernel threads (init will complain about interrupts disabled when finally starting user space). Disable interrupts temporarily when switching the tasks' register sets in resume(). Note that a simple oriw 0x700,%sr after restoring sr is not enough here - this leaves enough of a race for the 'spinlock recursion' warning to still be observed. Tested on ARAnyM and qemu (Quadra 800 emulation).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 533e6903bea0440816a0f517b0845ccea4cc7917 to < 2a8d1d95302c7d52c6ac8fa5cb4a6948ae0d3a14 (affected · git)533e6903bea0440816a0f517b0845ccea4cc7917 to < 5213cc01d0464c011fdc09f318705603ed3a746b (affected · git)533e6903bea0440816a0f517b0845ccea4cc7917 to < 4eeffecc8e3cce25bb559502c2fd94a948bcde82 (affected · git)533e6903bea0440816a0f517b0845ccea4cc7917 to < 77b2b67a0f8bce260c53907e5749d61466d90c87 (affected · git)533e6903bea0440816a0f517b0845ccea4cc7917 to < 0d9ae1253535f6e85a016e09c25ecbe6f7f59ef0 (affected · git)533e6903bea0440816a0f517b0845ccea4cc7917 to < f3baf0f4f92af32943ebf27b960e0552c6c082fd (affected · git)533e6903bea0440816a0f517b0845ccea4cc7917 to < f1d4274a84c069be0f6098ab10c3443fc1f7134c (affected · git)533e6903bea0440816a0f517b0845ccea4cc7917 to < 95f00caf767b5968c2c51083957b38be4748a78a (affected · git)533e6903bea0440816a0f517b0845ccea4cc7917 to < da89ce46f02470ef08f0f580755d14d547da59ed (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.7 (affected)0 to < 3.7 (unaffected · semver)4.19.316 through 4.19.* (unaffected · semver)5.4.278 through 5.4.* (unaffected · semver)5.10.219 through 5.10.* (unaffected · semver)5.15.161 through 5.15.* (unaffected · semver)6.1.93 through 6.1.* (unaffected · semver)6.6.33 through 6.6.* (unaffected · semver)6.8.12 through 6.8.* (unaffected · semver)6.9.3 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
9- https://git.kernel.org/stable/c/0d9ae1253535f6e85a016e09c25ecbe6f7f59ef0
- https://git.kernel.org/stable/c/2a8d1d95302c7d52c6ac8fa5cb4a6948ae0d3a14
- https://git.kernel.org/stable/c/4eeffecc8e3cce25bb559502c2fd94a948bcde82
- https://git.kernel.org/stable/c/5213cc01d0464c011fdc09f318705603ed3a746b
- https://git.kernel.org/stable/c/77b2b67a0f8bce260c53907e5749d61466d90c87
- https://git.kernel.org/stable/c/95f00caf767b5968c2c51083957b38be4748a78a
- https://git.kernel.org/stable/c/da89ce46f02470ef08f0f580755d14d547da59ed
- https://git.kernel.org/stable/c/f1d4274a84c069be0f6098ab10c3443fc1f7134c
- https://git.kernel.org/stable/c/f3baf0f4f92af32943ebf27b960e0552c6c082fd
Provider assertions
3Linux · cna
m68k: Fix spinlock race in kernel thread creation
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4660555e2de3823b93929893a33cc0c99e19e46cac0007ab1b16f74e954fdf7d
- Ingested
- 23 Sep 2026, 08:25:04 UTC
- Source record
- Official CVE record