CVE-2022-49726

clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:24 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

Description

In the Linux kernel, the following vulnerability has been resolved: clocksource: hyper-v: unexport __init-annotated hv_init_clocksource() EXPORT_SYMBOL and __init is a bad combination because the .init.text section is freed up after the initialization. Hence, modules cannot use symbols annotated __init. The access to a freed symbol may end up with kernel panic. modpost used to detect it, but it has been broken for a decade. Recently, I fixed modpost so it started to warn it again, then this showed up in linux-next builds. There are two ways to fix it: - Remove __init - Remove EXPORT_SYMBOL I chose the latter for this case because the only in-tree call-site, arch/x86/kernel/cpu/mshyperv.c is never compiled as modular. (CONFIG_HYPERVISOR_GUEST is boolean)

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.495.16 ≤ v < 5.18.65.3 ≤ v < 5.10.1245.3 ≤ v < 5.15.495.3 ≤ v < 5.18.65.3 ≤ v < 5.195.3 ≤ v < 5.4.2005.5 ≤ v < 5.10.1245.19 rc15.19 rc25.3dd2cb348613b44f9d948b068775e159aad298599
Vendor states this is fixed in 0414eab7c78f3518143d383e448d44fc573ac6d2 (fixed)
Vendor states this is fixed in 245b993d8f6c4e25f19191edfbd8080b645e12b1 (fixed)
Vendor states this is fixed in 937fcbb55a1e48a6422e87e8f49422c92265f102 (fixed)
Vendor states this is fixed in cff3a7ce6e81418b6e8bac941779bbf5d342d626 (fixed)
Vendor states this is fixed in db965e2757d95f695e606856418cd84003dd036d (fixed)
Vendor states this is fixed in 5.10.124 (unaffected)
Vendor states this is fixed in 5.15.49 (unaffected)
Vendor states this is fixed in 5.18.6 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.3 (unaffected)
Vendor states this is fixed in 5.4.200 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-908

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card