# CVE-2022-49728: ipv6: Fix signed integer overflow in \_\_ip6\_append\_data

> 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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-190
- **Published:** 2025-02-26T02:24:39.347Z
- **Modified:** 2026-06-17T05:18:59.157Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f26422eabeb517629568edf8c2dd9c6cb9147584; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 70549c80fe80ac4e2a22068c76ebebced24f7e74; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 84dc940890e91e42898e4443a093281702440abf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f93431c86b631bbca5614c66f966bf3ddb3c2803
- Anyone running Linux 2.6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

ipv6: Fix signed integer overflow in \_\_ip6\_append\_data

Resurrect ubsan overflow checks and ubsan report this warning,
fix it by change the variable \[length\] type to size\_t.

UBSAN: signed-integer-overflow in net/ipv6/ip6\_output.c:1489:19
2147479552 + 8567 cannot be represented in type 'int'
CPU: 0 PID: 253 Comm: err Not tainted 5.16.0+ \#1
Hardware name: linux,dummy-virt (DT)
Call trace:
  dump\_backtrace+0x214/0x230
  show\_stack+0x30/0x78
  dump\_stack\_lvl+0xf8/0x118
  dump\_stack+0x18/0x30
  ubsan\_epilogue+0x18/0x60
  handle\_overflow+0xd0/0xf0
  \_\_ubsan\_handle\_add\_overflow+0x34/0x44
  \_\_ip6\_append\_data.isra.48+0x1598/0x1688
  ip6\_append\_data+0x128/0x260
  udpv6\_sendmsg+0x680/0xdd0
  inet6\_sendmsg+0x54/0x90
  sock\_sendmsg+0x70/0x88
  \_\_\_\_sys\_sendmsg+0xe8/0x368
  \_\_\_sys\_sendmsg+0x98/0xe0
  \_\_sys\_sendmmsg+0xf4/0x3b8
  \_\_arm64\_sys\_sendmmsg+0x34/0x48
  invoke\_syscall+0x64/0x160
  el0\_svc\_common.constprop.4+0x124/0x300
  do\_el0\_svc+0x44/0xc8
  el0\_svc+0x3c/0x1e8
  el0t\_64\_sync\_handler+0x88/0xb0
  el0t\_64\_sync+0x16c/0x170

Changes since v1:
-Change the variable \[length\] type to unsigned, as Eric Dumazet suggested.
Changes since v2:
-Don't change exthdrlen type in ip6\_make\_skb, as Paolo Abeni suggested.
Changes since v3:
-Don't change ulen type in udpv6\_sendmsg and l2tp\_ip6\_sendmsg, as
Jakub Kicinski suggested.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f26422eabeb517629568edf8c2dd9c6cb9147584; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 70549c80fe80ac4e2a22068c76ebebced24f7e74; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 84dc940890e91e42898e4443a093281702440abf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f93431c86b631bbca5614c66f966bf3ddb3c2803 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49728.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f26422eabeb517629568edf8c2dd9c6cb9147584; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 70549c80fe80ac4e2a22068c76ebebced24f7e74; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 84dc940890e91e42898e4443a093281702440abf; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 70549c80fe80ac4e2a22068c76ebebced24f7e74, Linux 84dc940890e91e42898e4443a093281702440abf

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-49728 being exploited?

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

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

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

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f26422eabeb517629568edf8c2dd9c6cb9147584; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 70549c80fe80ac4e2a22068c76ebebced24f7e74; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 84dc940890e91e42898e4443a093281702440abf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f93431c86b631bbca5614c66f966bf3ddb3c2803; Linux 2.6.12.

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

Yes. Fixed in Linux 70549c80fe80ac4e2a22068c76ebebced24f7e74, Linux 84dc940890e91e42898e4443a093281702440abf. No fix listed yet: follow the vendor advisory.

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

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/84dc940890e91e42898e4443a093281702440abf>
- patch: <https://git.kernel.org/stable/c/f93431c86b631bbca5614c66f966bf3ddb3c2803>
- other: <https://git.kernel.org/stable/c/f26422eabeb517629568edf8c2dd9c6cb9147584>
- other: <https://git.kernel.org/stable/c/70549c80fe80ac4e2a22068c76ebebced24f7e74>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## 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-49728>

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