4.7

CVE-2024-38613: linux Race Condition

CVSS: 4.7v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2024-38613DEBIAN-CVE-2024-38613
Published 19-06-2024Last modified 11-05-2026

Vulnerability summary

CVE-2024-38613 is a medium (CVSS 4.7) Race Condition vulnerability in linux. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7% of scored vulnerabilities.

Overall risk
19/100
0100
Low · default modelHow is this calculated?
CVSS score
4.7/10
010
Medium · v3.1 (NVD)
EPSS score
0.18%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 20 · Related 17

Timeline

  1. 19-06-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

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).

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.18%

Chance of exploitation in the next 30 days

Percentile

7%

Versus all other CVEs

30-day change

0.00 pp

From 0.18% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.18%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Ubuntu128 products
  • linuxAll versions (No fix recorded) | < 5.4.0-192.212 | < 5.15.0-121.131 | < 6.8.0-40.40
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 5.4.0-1130.140 | < 5.15.0-1069.75 | < 6.8.0-1013.14
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < 2a8d1d95302c7d52c6ac8fa5cb4a6948ae0d3a14 | ≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < 5213cc01d0464c011fdc09f318705603ed3a746b | ≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < 4eeffecc8e3cce25bb559502c2fd94a948bcde82 | ≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < 77b2b67a0f8bce260c53907e5749d61466d90c87 | ≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < 0d9ae1253535f6e85a016e09c25ecbe6f7f59ef0 | ≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < f3baf0f4f92af32943ebf27b960e0552c6c082fd | ≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < f1d4274a84c069be0f6098ab10c3443fc1f7134c | ≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < 95f00caf767b5968c2c51083957b38be4748a78a | ≥ 533e6903bea0440816a0f517b0845ccea4cc7917, < da89ce46f02470ef08f0f580755d14d547da59ed | 3.7
  • linux_kernel≥ 3.7, < 4.19.316 | ≥ 4.20, < 5.4.278 | ≥ 5.5, < 5.10.219 | ≥ 5.11, < 5.15.161 | ≥ 5.16, < 6.1.93 | ≥ 6.2, < 6.6.33 | ≥ 6.7, < 6.8.12 | ≥ 6.9, < 6.9.3
Debian1 product
  • linux< 6.1.94-1 | < 6.8.12-1

3 vendors · 131 products

References

30 links
Show all 30 references