{"id":"CVE-2022-49339","aliases":["CVE-2022-49339"],"related":[],"kind":"vulnerability","state":"published","title":"net: ipv6: unexport __init-annotated seg6_hmac_init()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ipv6: unexport __init-annotated seg6_hmac_init()\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 caller (net/ipv6/seg6.c)\nand the callee (net/ipv6/seg6_hmac.c) belong to the same module.\nIt seems an internal function call in ipv6.ko.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ipv6: unexport __init-annotated seg6_hmac_init()\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 caller (net/ipv6/seg6.c)\nand the callee (net/ipv6/seg6_hmac.c) belong to the same module.\nIt seems an internal function call in ipv6.ko.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: ipv6: unexport __init-annotated seg6_hmac_init() 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 esto apareció en las compilaciones de linux-next. Hay dos formas de solucionarlo: - Eliminar __init - Eliminar EXPORT_SYMBOL Elegí esto último para este caso porque el llamador (net/ipv6/seg6.c) y el llamador (net/ipv6/seg6_hmac.c) pertenecen al mismo módulo. Parece una llamada de función interna en ipv6.ko.","source":"nvd"}],"published":"2025-02-26T02:10:56.704Z","modified":"2026-11-05T20:17:03.630Z","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":[],"affected":[{"ranges":[{"type":"git","introduced":"bf355b8d2c30a289232042cacc1cfaea4923936c","fixed":"64aef8efe96c1616142c4476a05731306fc4494e","status":"affected"},{"type":"git","introduced":"bf355b8d2c30a289232042cacc1cfaea4923936c","fixed":"ab8b2c2de273ec1d698a18e399896a6febb5cda0","status":"affected"},{"type":"git","introduced":"bf355b8d2c30a289232042cacc1cfaea4923936c","fixed":"317260b3eb6384a05a8af212308fa50f3b2e8290","status":"affected"},{"type":"git","introduced":"bf355b8d2c30a289232042cacc1cfaea4923936c","fixed":"5d9c1b081ad28c852a97e10dd75412546497694a","status":"affected"},{"type":"git","introduced":"bf355b8d2c30a289232042cacc1cfaea4923936c","fixed":"1084716f76c8045eadf92a9d9a62641f3c8d8c90","status":"affected"},{"type":"git","introduced":"bf355b8d2c30a289232042cacc1cfaea4923936c","fixed":"3e6de5037148c5a93a436b1e8d2edad3dac11755","status":"affected"},{"type":"git","introduced":"bf355b8d2c30a289232042cacc1cfaea4923936c","fixed":"9ba4416b831eeb4d185e88e73488d1d21288e63a","status":"affected"},{"type":"git","introduced":"bf355b8d2c30a289232042cacc1cfaea4923936c","fixed":"5801f064e35181c71857a80ff18af4dbec3c5f5c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.10","status":"unaffected"},{"type":"semver","introduced":"4.14.283","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.247","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.198","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.122","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.47","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.15","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.4","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":"4.10","fixed":"4.14.283"},{"status":"affected","introduced":"4.15","fixed":"4.19.247"},{"status":"affected","introduced":"4.20","fixed":"5.4.198"},{"status":"affected","introduced":"5.5","fixed":"5.10.122"},{"status":"affected","introduced":"5.11","fixed":"5.15.47"},{"status":"affected","introduced":"5.16","fixed":"5.17.15"},{"status":"affected","introduced":"5.18","fixed":"5.18.4"},{"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/64aef8efe96c1616142c4476a05731306fc4494e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab8b2c2de273ec1d698a18e399896a6febb5cda0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/317260b3eb6384a05a8af212308fa50f3b2e8290","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d9c1b081ad28c852a97e10dd75412546497694a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1084716f76c8045eadf92a9d9a62641f3c8d8c90","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e6de5037148c5a93a436b1e8d2edad3dac11755","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ba4416b831eeb4d185e88e73488d1d21288e63a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5801f064e35181c71857a80ff18af4dbec3c5f5c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T19:45:11.321Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49339","url":"https://www.cve.org/CVERecord?id=CVE-2022-49339","licence":"CVE Terms of Use","modified":"2026-11-05T19:49:38.690Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49339","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49339","licence":"Public domain","modified":"2026-11-05T20:17:03.630Z"}],"updatedAt":"2026-11-25T22:58:20.425Z","epss":{"score":0.00278,"percentile":0.21629,"date":"2026-12-02T12:00:21.000Z"}}