{"id":"CVE-2022-49726","summary":"clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nclocksource: hyper-v: unexport __init-annotated hv_init_clocksource()\n\nEXPORT_SYMBOL and __init is a bad combination because the .init.text\nsection is freed up after the initialization. Hence, modules cannot\nuse symbols annotated __init. The access to a freed symbol may end up\nwith kernel panic.\n\nmodpost used to detect it, but it has been broken for a decade.\n\nRecently, I fixed modpost so it started to warn it again, then this\nshowed up in linux-next builds.\n\nThere are two ways to fix it:\n\n  - Remove __init\n  - Remove EXPORT_SYMBOL\n\nI chose the latter for this case because the only in-tree call-site,\narch/x86/kernel/cpu/mshyperv.c is never compiled as modular.\n(CONFIG_HYPERVISOR_GUEST is boolean)","modified":"2026-04-02T08:27:52.532425Z","published":"2025-02-26T02:24:38.003Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49726.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49726.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49726"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"dd2cb348613b44f9d948b068775e159aad298599"},{"fixed":"cff3a7ce6e81418b6e8bac941779bbf5d342d626"},{"fixed":"db965e2757d95f695e606856418cd84003dd036d"},{"fixed":"0414eab7c78f3518143d383e448d44fc573ac6d2"},{"fixed":"937fcbb55a1e48a6422e87e8f49422c92265f102"},{"fixed":"245b993d8f6c4e25f19191edfbd8080b645e12b1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49726.json"}}],"schema_version":"1.7.5"}