1. Home
  2. Vulnerabilities
  3. CVE-2022-49339

CVE-2022-49339

net: ipv6: unexport __init-annotated seg6_hmac_init()

Published 26 Feb 2025 · modified 5 Nov 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 27/100

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.

Affected products and versions

Linux (9 line(s))
Linux
ProductVersionsFixed inSource
Linux 4.10 — CNA (vendor or assigner)
Linux kernel from 4.10 (included) to 4.14.283 (excluded) — NVD
Linux kernel from 4.15 (included) to 4.19.247 (excluded) — NVD
Linux kernel from 4.20 (included) to 5.4.198 (excluded) — NVD
Linux kernel from 5.5 (included) to 5.10.122 (excluded) — NVD
Linux kernel from 5.11 (included) to 5.15.47 (excluded) — NVD
Linux kernel from 5.16 (included) to 5.17.15 (excluded) — NVD
Linux kernel from 5.18 (included) to 5.18.4 (excluded) — NVD
Linux kernel 5.19 — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
NVD-CWE-noinfo · Non classé

How this data is obtained and calculated