{"id":"CVE-2022-49726","aliases":["CVE-2022-49726"],"related":[],"kind":"vulnerability","state":"published","title":"clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()","summary":"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)","summarySource":"cvelist","descriptions":[{"lang":"en","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)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: clocksource: hyper-v: unexport __init-annotated hv_init_clocksource() EXPORT_SYMBOL y __init es una mala combinación porque la sección .init.text se libera después de la inicialización. Por lo tanto, los módulos no pueden usar símbolos anotados __init. El acceso a un símbolo liberado puede terminar con un pánico del kernel. modpost solía detectarlo, pero ha estado roto durante una década. Recientemente, arreglé modpost para que comenzara a advertirlo nuevamente, luego apareció en las compilaciones de linux-next. Hay dos formas de solucionarlo: - Eliminar __init - Eliminar EXPORT_SYMBOL Elegí la última para este caso porque el único sitio de llamada en el árbol, arch/x86/kernel/cpu/mshyperv.c nunca se compila como modular. (CONFIG_HYPERVISOR_GUEST es booleano)","source":"nvd"}],"published":"2025-02-26T02:24:38.003Z","modified":"2026-06-17T05:18:58.783Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"dd2cb348613b44f9d948b068775e159aad298599","fixed":"cff3a7ce6e81418b6e8bac941779bbf5d342d626","status":"affected"},{"type":"git","introduced":"dd2cb348613b44f9d948b068775e159aad298599","fixed":"db965e2757d95f695e606856418cd84003dd036d","status":"affected"},{"type":"git","introduced":"dd2cb348613b44f9d948b068775e159aad298599","fixed":"0414eab7c78f3518143d383e448d44fc573ac6d2","status":"affected"},{"type":"git","introduced":"dd2cb348613b44f9d948b068775e159aad298599","fixed":"937fcbb55a1e48a6422e87e8f49422c92265f102","status":"affected"},{"type":"git","introduced":"dd2cb348613b44f9d948b068775e159aad298599","fixed":"245b993d8f6c4e25f19191edfbd8080b645e12b1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.4.200","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.124","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.49","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.6","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.3","fixed":"5.4.200"},{"status":"affected","introduced":"5.5","fixed":"5.10.124"},{"status":"affected","introduced":"5.11","fixed":"5.15.49"},{"status":"affected","introduced":"5.16","fixed":"5.18.6"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49726","url":"https://www.cve.org/CVERecord?id=CVE-2022-49726","licence":"CVE Terms of Use","modified":"2026-05-11T19:05:39.715Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49726","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49726","licence":"Public domain","modified":"2026-06-17T05:18:58.783Z"}],"updatedAt":"2026-11-25T22:58:20.828Z","epss":{"score":0.00284,"percentile":0.13494,"date":"2026-11-30T12:00:22.000Z"}}