net: ipv6: unexport __init-annotated seg6_hmac_init()
In the Linux kernel, the following vulnerability has been resolved: net: ipv6: unexport __init-annotated seg6_hmac_init() 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 caller (net/ipv6/seg6.c) and the callee (net/ipv6/seg6_hmac.c) belong to the same module. It seems an internal function call in ipv6.ko.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.283, 4.19.247, 5.10.122, 5.15.47, 5.17.15, 5.18.4, 5.4.198
- CVEs
- CVE-2022-49339
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 00:51 UTC · Revision 1
Source evidence
net: ipv6: unexport __init-annotated seg6_hmac_init()
core-osv · Original sourcePublished 26 Feb 2025, 02:10 UTC
In the Linux kernel, the following vulnerability has been resolved: net: ipv6: unexport __init-annotated seg6_hmac_init() 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 caller (net/ipv6/seg6.c) and the callee (net/ipv6/seg6_hmac.c) belong to the same module. It seems an internal function call in ipv6.ko.
osv:CVE-2022-49339
Kernel
Fixed versions: 4.14.283, 4.19.247, 5.4.198, 5.10.122, 5.15.47, 5.17.15, 5.18.4
Complete source record
{
"id": "567a085195eaff83c185e1a9b9c3f1477ef032d914ab010e656f92f0cb45c3f3",
"url": "https://osv.dev/vulnerability/CVE-2022-49339",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: ipv6: unexport __init-annotated seg6_hmac_init()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: ipv6: unexport __init-annotated seg6_hmac_init() 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 caller (net/ipv6/seg6.c) and the callee (net/ipv6/seg6_hmac.c) belong to the same module. It seems an internal function call in ipv6.ko.",
"evidence": "osv:CVE-2022-49339",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.283",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.247",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.198",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.122",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.47",
"evidence": "/affected/1/ranges"
},
{
"value": "5.17.15",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49339",
"aliases": [
"CVE-2022-49339"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "bf355b8d2c30a289232042cacc1cfaea4923936c"
},
{
"fixed": "64aef8efe96c1616142c4476a05731306fc4494e"
},
{
"fixed": "ab8b2c2de273ec1d698a18e399896a6febb5cda0"
},
{
"fixed": "317260b3eb6384a05a8af212308fa50f3b2e8290"
},
{
"fixed": "5d9c1b081ad28c852a97e10dd75412546497694a"
},
{
"fixed": "1084716f76c8045eadf92a9d9a62641f3c8d8c90"
},
{
"fixed": "3e6de5037148c5a93a436b1e8d2edad3dac11755"
},
{
"fixed": "9ba4416b831eeb4d185e88e73488d1d21288e63a"
},
{
"fixed": "5801f064e35181c71857a80ff18af4dbec3c5f5c"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49339.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.10.0"
},
{
"fixed": "4.14.283"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.247"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.198"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.122"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.47"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.17.15"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "5.18.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49339.json"
}
}
],
"modified": "2026-10-28T02:30:24.822798180Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1084716f76c8045eadf92a9d9a62641f3c8d8c90",
"https://git.kernel.org/stable/c/317260b3eb6384a05a8af212308fa50f3b2e8290",
"https://git.kernel.org/stable/c/3e6de5037148c5a93a436b1e8d2edad3dac11755",
"https://git.kernel.org/stable/c/5801f064e35181c71857a80ff18af4dbec3c5f5c",
"https://git.kernel.org/stable/c/5d9c1b081ad28c852a97e10dd75412546497694a",
"https://git.kernel.org/stable/c/64aef8efe96c1616142c4476a05731306fc4494e",
"https://git.kernel.org/stable/c/9ba4416b831eeb4d185e88e73488d1d21288e63a",
"https://git.kernel.org/stable/c/ab8b2c2de273ec1d698a18e399896a6febb5cda0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49339.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49339",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49339.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49339",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 491319,
"published_at": "2025-02-26T02:10:56.704+00:00"
}