CVE-2022-49726 Details
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)
A vulnerability in the Linux kernel's handling of clocksource initialization for Hyper-V can cause a kernel panic. The issue arises because the initialization function is marked with both __init and EXPORT_SYMBOL annotations. The __init annotation indicates that the function is only needed during initialization and can be discarded afterward, leaving modules unable to access it. Attempting to use a symbol from a freed section can lead to a kernel panic. While the 'modpost' tool used to detect this issue, it had been broken for a decade. After fixing 'modpost' to warn about this problem, it was identified in 'linux-next' builds. The vulnerability could be resolved by either removing the __init annotation or the EXPORT_SYMBOL designation. The author chose to remove EXPORT_SYMBOL, as the only in-tree call site for this function is not compiled as a module.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102 | kernel.org | Patch |
| https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626 | kernel.org | Patch |
| https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-908 | Use of Uninitialized Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.3, < 5.4.200 >= 5.5, < 5.10.124 >= 5.11, < 5.15.49 >= 5.16, < 5.18.6 5.19 rc1 5.19 rc2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 24, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |