CVE-2026-139229: ksmbd: reject foreign RPC pipe handles on IPC$ read and write

Published Nov 30, 2026
·
Updated

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

ksmbd: reject foreign RPC pipe handles on IPC$ read and write

RPC pipe handles on IPC$ are allocated from a single server-global IDA, and ksmbd.mountd looks a pipe up by handle alone, with no session information. smb2readpipe() and smb2writepipe() take the handle straight from the client request (VolatileFileId) and pass it to the daemon without checking that the requesting session opened it. An authenticated user can therefore issue an SMB2 READ or WRITE on IPC$ with another session's handle and receive that session's in-flight DCERPC response, or write attacker-chosen bytes into its pipe stream. A tree connect to IPC$, which every RPC client already has, is the only requirement.

Validate ownership before the transfer, the way the sibling pipe paths already do: under sess->rpclock, ksmbdsessionrpcmethod() returns 0 for a handle the session did not open. smb2getinfofilepipe() and the FSCTLPIPETRANSCEIVE ioctl already reject such handles; read and write were the remaining gap. Reject them with STATUSFILECLOSED, as the ioctl path does.

Affected Software

6 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.15.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  6. Compensating control

    In ksmbd, validate RPC pipe handle ownership under sess->rpc_lock before SMB2 reads or writes; reject handles not opened by the requesting session with STATUS_FILE_CLOSED.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description
Data Sourced
via OSV·01:32 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated SMB user can exploit it. The user needs a tree connection to IPC$, which every RPC client already has.

2

What could an attacker do with another session's pipe handle?

They can issue SMB2 READ requests to receive another session's in-flight DCERPC response, or SMB2 WRITE requests to inject attacker-chosen bytes into that session's pipe stream.

3

Which operations were missing the ownership check?

The missing validation affected IPC$ pipe reads and writes through smb2_read_pipe() and smb2_write_pipe(). Other paths, including file-pipe get-info and FSCTL_PIPE_TRANSCEIVE, already rejected handles not opened by the requesting session.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203