# CVE-2022-49339: net: ipv6: unexport \_\_init-annotated seg6\_hmac\_init()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-02-26T02:10:56.704Z
- **Modified:** 2026-11-05T20:17:03.630Z

## Who should check

- Anyone running Linux \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 64aef8efe96c1616142c4476a05731306fc4494e; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< ab8b2c2de273ec1d698a18e399896a6febb5cda0; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 317260b3eb6384a05a8af212308fa50f3b2e8290; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 5d9c1b081ad28c852a97e10dd75412546497694a; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 1084716f76c8045eadf92a9d9a62641f3c8d8c90; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 3e6de5037148c5a93a436b1e8d2edad3dac11755; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 9ba4416b831eeb4d185e88e73488d1d21288e63a; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 5801f064e35181c71857a80ff18af4dbec3c5f5c
- Anyone running Linux 4.10

## Description

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 and fixed versions

- Linux: \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 64aef8efe96c1616142c4476a05731306fc4494e; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< ab8b2c2de273ec1d698a18e399896a6febb5cda0; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 317260b3eb6384a05a8af212308fa50f3b2e8290; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 5d9c1b081ad28c852a97e10dd75412546497694a; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 1084716f76c8045eadf92a9d9a62641f3c8d8c90; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 3e6de5037148c5a93a436b1e8d2edad3dac11755; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 9ba4416b831eeb4d185e88e73488d1d21288e63a; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 5801f064e35181c71857a80ff18af4dbec3c5f5c (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- Upgrade Linux to 5801f064e35181c71857a80ff18af4dbec3c5f5c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49339. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49339.md
Affected: Linux >= bf355b8d2c30a289232042cacc1cfaea4923936c, < 64aef8efe96c1616142c4476a05731306fc4494e; >= bf355b8d2c30a289232042cacc1cfaea4923936c, < ab8b2c2de273ec1d698a18e399896a6febb5cda0; >= bf355b8d2c30a289232042cacc1cfaea4923936c, < 317260b3eb6384a05a8af212308fa50f3b2e8290; >= bf355b8d2c30a289232042c…
Fixed in: Linux 64aef8efe96c1616142c4476a05731306fc4494e, Linux 317260b3eb6384a05a8af212308fa50f3b2e8290, Linux 5d9c1b081ad28c852a97e10dd75412546497694a, Linux 1084716f76c8045eadf92a9d9a62641f3c8d8c90, Linux 3e6de5037148c5a93a436b1e8d2edad3dac11755, Linux 9ba4416b831eeb4d185e88e73488d1d21288e63a, Linux 5801f…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49339 being exploited?

There is no confirmed exploitation: CVE-2022-49339 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49339?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49339?

Linux \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 64aef8efe96c1616142c4476a05731306fc4494e; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< ab8b2c2de273ec1d698a18e399896a6febb5cda0; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 317260b3eb6384a05a8af212308fa50f3b2e8290; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 5d9c1b081ad28c852a97e10dd75412546497694a; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 1084716f76c8045eadf92a9d9a62641f3c8d8c90; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 3e6de5037148c5a93a436b1e8d2edad3dac11755; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 9ba4416b831eeb4d185e88e73488d1d21288e63a; \>= bf355b8d2c30a289232042cacc1cfaea4923936c, \< 5801f064e35181c71857a80ff18af4dbec3c5f5c; Linux 4.10.

### Is there a fix for CVE-2022-49339?

Yes. Fixed in Linux 64aef8efe96c1616142c4476a05731306fc4494e, Linux 317260b3eb6384a05a8af212308fa50f3b2e8290, Linux 5d9c1b081ad28c852a97e10dd75412546497694a, Linux 1084716f76c8045eadf92a9d9a62641f3c8d8c90, Linux 3e6de5037148c5a93a436b1e8d2edad3dac11755, Linux 9ba4416b831eeb4d185e88e73488d1d21288e63a, Linux 5801f064e35181c71857a80ff18af4dbec3c5f5c. Upgrade Linux to 5801f064e35181c71857a80ff18af4dbec3c5f5c or later.

### How do I check if I'm affected by CVE-2022-49339?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/64aef8efe96c1616142c4476a05731306fc4494e>
- patch: <https://git.kernel.org/stable/c/ab8b2c2de273ec1d698a18e399896a6febb5cda0>
- patch: <https://git.kernel.org/stable/c/317260b3eb6384a05a8af212308fa50f3b2e8290>
- patch: <https://git.kernel.org/stable/c/5d9c1b081ad28c852a97e10dd75412546497694a>
- patch: <https://git.kernel.org/stable/c/1084716f76c8045eadf92a9d9a62641f3c8d8c90>
- patch: <https://git.kernel.org/stable/c/3e6de5037148c5a93a436b1e8d2edad3dac11755>
- patch: <https://git.kernel.org/stable/c/9ba4416b831eeb4d185e88e73488d1d21288e63a>
- patch: <https://git.kernel.org/stable/c/5801f064e35181c71857a80ff18af4dbec3c5f5c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49339>

HTML: <https://flawdb.com/CVE-2022-49339> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49339>
