data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2024-38630 in the interactive tracker

CVE-2024-38630

watchdog: cpu5wdt.c: Fix use-after-free bug caused by cpu5wdt_trigger

EPSS 0.3%

Published 2024-06-21 (2 years ago) by the Linux kernel CNA. Subsystem drivers/watchdog. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2024-38630 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormvulnerable6.1.190-1No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication.
Debian 13trixiefixed6.9.7-1Update the kernel and reboot. Fixed in 6.9.7-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed6.9.7-1Update the kernel and reboot. Fixed in 6.9.7-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed6.9.7-1Update the kernel and reboot. Fixed in 6.9.7-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

When the cpu5wdt module is removing, the origin code uses del_timer() to de-activate the timer. If the timer handler is running, del_timer() could not stop it and will return directly. If the port region is released by release_region() and then the timer handler cpu5wdt_trigger() calls outb() to write into the region that is released, the use-after-free bug will happen. Change del_timer() to timer_shutdown_sync() in order that the timer handler could be finished before the port region is released.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

drivers/watchdog/cpu5wdt.c

What this is
WATCHDOG DEVICE DRIVERSMAINTAINERS section matched on drivers/watchdog/ · linux-watchdog@vger.kernel.org · Maintained
Kernel module
cpu5wdt

Check it on the machine

grep -wE 'CONFIG_CPU5_WDT|CONFIG_WATCHDOG' /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

lsmod | grep -w cpu5wdt

Prints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.

Show whether Debian builds this, per release

Debian builds this, but not on every flavour. At least one release below builds the code on some of its kernel flavours and not on others, so the answer depends on the architecture and flavour installed. The build rule could not be established for 2 releases, so nothing is claimed about those.

  • bookwormMnot built on amd64/cloud-amd64, arm64/arm64, arm64/cloud-arm64, arm64/rt/arm64, armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp, ppc64el/powerpc64le
  • trixieMnot built on amd64/cloud-amd64, arm64/arm64, arm64/arm64-16k, arm64/cloud-arm64, arm64/rt/arm64, armel/rpi, armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp, ppc64el/powerpc64le, ppc64el/powerpc64le-64k, riscv64/riscv64, s390x/s390x
  • forky, sid?
M
a module where it is built at all; some flavours do not build it
?
not established - no Makefile entry for the affected file

Where a release above reads "not established", no build rule for the affected file was found in that release's kernel tree. That is a gap in this lookup, not a finding that the code is absent.

Build switches
CONFIG_CPU5_WDT, CONFIG_WATCHDOG
Reads as
all on means the file is compiled; any one off means it is not.

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2024-06-21 (2 years ago)source
CVSS
no vector published, unrated
Attack vector
not published
EPSS
0.25%, higher than 15.3% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
drivers/watchdog

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
2.6.126.6.339b1c063ffc07
2.6.126.9.4f19686d61650
2.6.126.10573601521277

Why the CNA scored it this way

The kernel CNA published no CVSS vector and no reasoning for CVE-2024-38630, which is why it is shown as unrated rather than given an invented score. 6,405 of the 20,413 CVEs here carry reasoning; this is not one of them.