# CVE-2025-68214: timers: Fix NULL function pointer race in timer\_shutdown\_sync()

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-16 · Modified: 2026-11-05
- Aliases: RHSA-2026:49870, UBUNTU-CVE-2025-68214, DEBIAN-CVE-2025-68214
- Record: https://cvemate.com/vulnerability/CVE-2025-68214 · JSON: https://cvemate.com/vulnerability/CVE-2025-68214/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

timers: Fix NULL function pointer race in timer_shutdown_sync()

There is a race condition between timer_shutdown_sync() and timer
expiration that can lead to hitting a WARN_ON in expire_timers().

The issue occurs when timer_shutdown_sync() clears the timer function
to NULL while the timer is still running on another CPU. The race
scenario looks like this:

CPU0					CPU1
					<SOFTIRQ>
					lock_timer_base()
					expire_timers()
					base->running_timer = timer;
					unlock_timer_base()
					[call_timer_fn enter]
					mod_timer()
					...
timer_shutdown_sync()
lock_timer_base()
// For now, will not detach the timer but only clear its function to NULL
if (base->running_timer != timer)
	ret = detach_if_pending(timer, base, true);
if (shutdown)
	timer->function = NULL;
unlock_timer_base()
					[call_timer_fn exit]
					lock_timer_base()
					base->running_timer = NULL;
					unlock_timer_base()
					...
					// Now timer is pending while its function set to NULL.
					// next timer trigger
					<SOFTIRQ>
					expire_timers()
					WARN_ON_ONCE(!fn) // hit
					...
lock_timer_base()
// Now timer will detach
if (base->running_timer != timer)
	ret = detach_if_pending(timer, base, true);
if (shutdown)
	timer->function = NULL;
unlock_timer_base()

The problem is that timer_shutdown_sync() clears the timer function
regardless of whether the timer is currently running. This can leave a
pending timer with a NULL function pointer, which triggers the
WARN_ON_ONCE(!fn) check in expire_timers().

Fix this by only clearing the timer function when actually detaching the
timer. If the timer is running, leave the function pointer intact, which is
safe because the timer will be properly detached when it finishes running.
```

## Signals

- CVSS: 4.7 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.138%, percentile 3.343%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 246)

- debian linux (Debian): \< 6.1.159-1 \| \< 6.12.63-1 \| \< 6.17.10-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-185.195 \| \< 6.8.0-106.106 \| \< 6.17.0-19.19
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1111.118 \| \< 6.8.0-1050.53 \| \< 6.17.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1111.118~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): \< 6.17.0-1009.9~24.04.2
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1050.53~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1111.118+fips1 \| \< 6.8.0-1050.53+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1116.125 \| \< 6.8.0-1051.57 \| \< 6.17.0-1010.10
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 39)

- <https://git.kernel.org/stable/c/ba43ac025c4318241f8edf94f31d2eebab86991b>
- <https://git.kernel.org/stable/c/1a975716cc8977f461e45e28e3e5977d46ad7a6a>
- <https://git.kernel.org/stable/c/6665fbd7730b26d770c232b20d1b907e6a67a914>
- <https://git.kernel.org/stable/c/176725f4848376530a0f0da9023f956afcc33585>
- <https://git.kernel.org/stable/c/a01efa7a780c42ac5170a949bd95c9786ffcc60a>
- <https://git.kernel.org/stable/c/20739af07383e6eb1ec59dcd70b72ebfa9ac362c>
- <https://access.redhat.com/errata/RHSA-2026:49870>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2422686>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_49870.json>
- <https://access.redhat.com/security/cve/CVE-2025-68214>
- <https://www.cve.org/CVERecord?id=CVE-2025-68214>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68214>
- <https://lore.kernel.org/linux-cve-announce/2025121631-CVE-2025-68214-1871@gregkh/T>
- <https://ubuntu.com/security/CVE-2025-68214>
- <https://git.kernel.org/linus/20739af07383e6eb1ec59dcd70b72ebfa9ac362c>
- <https://ubuntu.com/security/notices/USN-8094-1>
- <https://ubuntu.com/security/notices/USN-8095-1>
- <https://ubuntu.com/security/notices/USN-8100-1>
- <https://ubuntu.com/security/notices/USN-8095-2>

---

Data as of 2026-12-05T05:00:18.423Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
