CVE-2026-143139

Source
https://cve.org/CVERecord?id=CVE-2026-143139
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143139.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143139
Downstream
Published
2026-12-03T09:19:45Z
Modified
2026-12-03T11:01:26Z
Summary
hv_sock: Report no unread data before a channel is available
Details

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

hv_sock: Report no unread data before a channel is available

The Hyper-V transport is assigned before the asynchronous VMBus channel offer completes. Its zero-initialized hvsock therefore has a NULL chan until hvs_open_connection() associates the channel with the socket.

SIOCINQ can query the assigned transport while the socket is connecting, or after connect() fails once the transport has been assigned. Unlike poll(), that path does not check stream_is_active() before calling the transport's stream_has_data callback. hvs_stream_has_data() then passes the NULL channel to hvs_channel_readable_payload(), and any user in the guest can trigger an oops:

BUG: kernel NULL pointer dereference, address: 0000000000000178 RIP: 0010:hvs_stream_has_data+0x23/0x120 Call Trace: ? vsock_ioctl+0x74/0xf0 sock_do_ioctl+0x42/0xf0 sock_ioctl+0x27d/0x310 do_vfs_ioctl+0x700/0x810 __x64_sys_ioctl+0x7d/0xf0

Return zero unread bytes when no channel is available, before accessing the receive state or ring. Leave the existing channel-backed receive handling unchanged.

The oops was reproduced on an unmodified v7.4-rc1 kernel in a WSL2 guest with a small user-space program, available on request. With this patch, the program reports zero unread bytes and the kernel logs nothing. Other vsock_test cases were not run, as most of them need a host-side peer.

AI assistance was used to identify the issue and develop the fix.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143139.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f7c72265927540fb24c99fee8a54da7db537656c
Fixed
664e92a740fc61d651afe34c2e23552171c4f326
Fixed
71f395aa263fb30e92bb252eed50e1c8622d6586
Fixed
71b06766b7c49ed5f489b8bd104f82ff164d67a3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143139.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143139.json"