BreachSpiderVerified, not vibes

CVE-2022-50838 in Kernel products

No CVSS score published

In the Linux kernel, the following vulnerability has been resolved: net: stream: purge sk_error_queue in sk_stream_kill_queues() Changheon Lee reported TCP socket leaks, with a nice repro. It seems we leak TCP sockets with the following sequence: 1) SOF_TIMESTAMPING_TX_ACK is enabled on the socket. Each ACK ...

Affects 1 product from 4 vendors. Facts below cite their sources.

EPSS0.3%
EPSS percentile18th
FixUnknown

Affected products and versions

VendorProductAffected versions
Kernel — —
Linux Linux 5.16 ≥ 4.4.293, < 4.5 ≥ 4.9.291, < 4.9.337 ≥ 4.14.256, < 4.14.303 ≥ 4.19.218, < 4.19.270 ≥ 5.4.160, < 5.4.229
+3 more≥ 5.10.80, < 5.10.163 ≥ 5.14.19, < 5.15 ≥ 5.15.3, < 5.15.86
Nice — —
Socket — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

In the Linux kernel, the following vulnerability has been resolved: net: stream: purge sk_error_queue in sk_stream_kill_queues() Changheon Lee reported TCP socket leaks, with a nice repro. It seems we leak TCP sockets with the following sequence: 1) SOF_TIMESTAMPING_TX_ACK is enabled on the socket. Each ACK will cook an skb put in error queue, from __skb_tstamp_tx(). __skb_tstamp_tx() is using skb_clone(), unless SOF_TIMESTAMPING_OPT_TSONLY was also requested. 2) If the application is also using MSG_ZEROCOPY, then we put in the error queue cloned skbs that had a struct ubuf_info attached to them. Whenever an struct ubuf_info is allocated, sock_zerocopy_alloc() does a sock_hold(). As long as the cloned skbs are still in sk_error_queue, socket refcount is kept elevated. 3) Application closes the socket, while error queue is not empty. Since tcp_close() no longer purges the socket error queue, we might end up with a TCP socket with at least one skb in error queue keeping the socket alive forever. This bug can be (ab)used to consume all kernel memory and freeze the host. We need to purge the error queue, with proper synchronization against concurrent writers.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-50838
BreachSpider IDBS-2025-GLOBAL-341119-I
Published2025-12-30
Last modified2026-06-17
SourceNVD

Analysis AI-written, not human-reviewed

A vulnerability in the Linux kernel's TCP stack allows for TCP socket leaks when SOF_TIMESTAMPING_TX_ACK is enabled on the socket, leading to potential resource exhaustion.

The vulnerability occurs when SOF_TIMESTAMPING_TX_ACK is enabled on a TCP socket. Each ACK received by the socket generates an skb (socket buffer) that is placed in the error queue via the __skb_tstamp_tx() function. If the sk_stream_kill_queues() function is called without properly purging the sk_error_queue, it can lead to a leak of TCP sockets.

Questions

What is CVE-2022-50838?

A vulnerability in the Linux kernel's TCP stack allows for TCP socket leaks when SOF_TIMESTAMPING_TX_ACK is enabled on the socket, leading to potential resource exhaustion.

Is CVE-2022-50838 actively exploited?

No confirmed active exploitation of CVE-2022-50838 as of 2026-09-25.

How do I remediate CVE-2022-50838?

Priority: MEDIUM.

What systems are affected by CVE-2022-50838?

CVE-2022-50838 affects Kernel; Linux Linux; Nice; Socket.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Kernel","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.