{"id":"CVE-2022-49726","published":"2025-02-26T02:24:38Z","modified":"2026-05-11T19:05:39Z","title":"clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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)","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00273,"percentile":0.19505,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626","tags":[]},{"url":"https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d","tags":[]},{"url":"https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2","tags":[]},{"url":"https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102","tags":[]},{"url":"https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1","tags":[]}],"priority":{"score":3.9,"factors":[{"name":"EPSS percentile","points":3.9}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= dd2cb348613b44f9d948b068775e159aad298599, < cff3a7ce6e81418b6e8bac941779bbf5d342d626",">= dd2cb348613b44f9d948b068775e159aad298599, < db965e2757d95f695e606856418cd84003dd036d",">= dd2cb348613b44f9d948b068775e159aad298599, < 0414eab7c78f3518143d383e448d44fc573ac6d2",">= dd2cb348613b44f9d948b068775e159aad298599, < 937fcbb55a1e48a6422e87e8f49422c92265f102",">= dd2cb348613b44f9d948b068775e159aad298599, < 245b993d8f6c4e25f19191edfbd8080b645e12b1"]},{"vendor":"Linux","product":"Linux","versions":["5.3"]}],"euvd":{"id":"EUVD-2022-54509","exploited":false,"provenance":"source"}}