# CVE-2022-49838: sctp: clear out\_curr if all frag chunks of current msg are pruned

> 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 14, 2026-11-28)
- **Published:** 2025-05-01T14:09:54.816Z
- **Modified:** 2026-11-05T20:17:15.853Z

## Who should check

- Anyone running Linux \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< e27458b18b35caee4b27b37a4a9c503b93cae5cc; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 2ea600b598dd3e061854dd4dd5b4c815397dfcea; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 3eff34e01062ec08fbb45ce2baaaa644550be821; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 2f201ae14ae0f91dbf1cffea7bb1e29e81d4d108
- Anyone running Linux 4.15

## Description

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

sctp: clear out\_curr if all frag chunks of current msg are pruned

A crash was reported by Zhen Chen:

  list\_del corruption, ffffa035ddf01c18-\>next is NULL
  WARNING: CPU: 1 PID: 250682 at lib/list\_debug.c:49 \_\_list\_del\_entry\_valid+0x59/0xe0
  RIP: 0010:\_\_list\_del\_entry\_valid+0x59/0xe0
  Call Trace:
   sctp\_sched\_dequeue\_common+0x17/0x70 \[sctp\]
   sctp\_sched\_fcfs\_dequeue+0x37/0x50 \[sctp\]
   sctp\_outq\_flush\_data+0x85/0x360 \[sctp\]
   sctp\_outq\_uncork+0x77/0xa0 \[sctp\]
   sctp\_cmd\_interpreter.constprop.0+0x164/0x1450 \[sctp\]
   sctp\_side\_effects+0x37/0xe0 \[sctp\]
   sctp\_do\_sm+0xd0/0x230 \[sctp\]
   sctp\_primitive\_SEND+0x2f/0x40 \[sctp\]
   sctp\_sendmsg\_to\_asoc+0x3fa/0x5c0 \[sctp\]
   sctp\_sendmsg+0x3d5/0x440 \[sctp\]
   sock\_sendmsg+0x5b/0x70

and in sctp\_sched\_fcfs\_dequeue() it dequeued a chunk from stream
out\_curr outq while this outq was empty.

Normally stream-\>out\_curr must be set to NULL once all frag chunks of
current msg are dequeued, as we can see in sctp\_sched\_dequeue\_done().
However, in sctp\_prsctp\_prune\_unsent() as it is not a proper dequeue,
sctp\_sched\_dequeue\_done() is not called to do this.

This patch is to fix it by simply setting out\_curr to NULL when the
last frag chunk of current msg is dequeued from out\_curr stream in
sctp\_prsctp\_prune\_unsent().

## Affected and fixed versions

- Linux: \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< e27458b18b35caee4b27b37a4a9c503b93cae5cc; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 2ea600b598dd3e061854dd4dd5b4c815397dfcea; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 3eff34e01062ec08fbb45ce2baaaa644550be821; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 2f201ae14ae0f91dbf1cffea7bb1e29e81d4d108 (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- Upgrade Linux to 2f201ae14ae0f91dbf1cffea7bb1e29e81d4d108 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-49838. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49838.md
Affected: Linux >= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, < e27458b18b35caee4b27b37a4a9c503b93cae5cc; >= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, < 2ea600b598dd3e061854dd4dd5b4c815397dfcea; >= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, < 3eff34e01062ec08fbb45ce2baaaa644550be821; >= 5bbbbe32a43199c2b9ea5ea…
Fixed in: Linux 2ea600b598dd3e061854dd4dd5b4c815397dfcea, Linux 3eff34e01062ec08fbb45ce2baaaa644550be821, Linux 2f201ae14ae0f91dbf1cffea7bb1e29e81d4d108

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

There is no confirmed exploitation: CVE-2022-49838 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-28).

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

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

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

Linux \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< e27458b18b35caee4b27b37a4a9c503b93cae5cc; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 2ea600b598dd3e061854dd4dd5b4c815397dfcea; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 3eff34e01062ec08fbb45ce2baaaa644550be821; \>= 5bbbbe32a43199c2b9ea5ea66fab6241c64beb51, \< 2f201ae14ae0f91dbf1cffea7bb1e29e81d4d108; Linux 4.15.

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

Yes. Fixed in Linux 2ea600b598dd3e061854dd4dd5b4c815397dfcea, Linux 3eff34e01062ec08fbb45ce2baaaa644550be821, Linux 2f201ae14ae0f91dbf1cffea7bb1e29e81d4d108. Upgrade Linux to 2f201ae14ae0f91dbf1cffea7bb1e29e81d4d108 or later.

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

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/e27458b18b35caee4b27b37a4a9c503b93cae5cc>
- patch: <https://git.kernel.org/stable/c/2ea600b598dd3e061854dd4dd5b4c815397dfcea>
- patch: <https://git.kernel.org/stable/c/3eff34e01062ec08fbb45ce2baaaa644550be821>
- patch: <https://git.kernel.org/stable/c/2f201ae14ae0f91dbf1cffea7bb1e29e81d4d108>

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

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