# CVE-2026-99350: rxrpc: Fix update of call->tx_pending without holding lock

The Markdown version of <https://upatch.dev/cve/CVE-2026-99350>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-99350 has no CVSS score yet. It affects the Linux kernel and was published on 19 Nov 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.2%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-99350-rxrpc-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-99350, "rxrpc: Fix update of call->tx_pending without holding lock", was published on 19 November 2026. When a signal interrupts `rxrpc_send_data()` (`net/rxrpc/sendmsg.c`) while it waits for transmit space, the function writes `call->tx_pending` without holding `call->user_mutex`. A parallel `sendmsg()` on the same call can then race with it.

### Official description

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

rxrpc: Fix update of call->tx_pending without holding lock

Currently, rxrpc_send_data() updates call->tx_pending just before it returns - but it won't be holding the call->user_mutex when it does this if a wait was interrupted by a signal. This would allow a parallel sendmsg() to race.

Further, both the callers of rxrpc_send_data() call it with the lock held, and then it returns an indication through the parameter list to say whether it has dropped the lock or not - after which the callers both just drop the lock if it's still held.

Fix this by:

(1) Moving the release of call->user_mutex down into rxrpc_send_data() and get rid of the indicator parameter. This makes it easier to see where the lock is held.

(2) After waiting, if the attempt to reacquire the mutex is interrupted, just return directly there rather than going to out_unlock

(3) Restricting the txb variable to inside the buffering loop and leaving ->tx_pending set until we've queued the buffer.

Note that there's a slight change in behaviour in that wait_for_space failure now doesn't check for completion because it doesn't hold the call user_mutex. The caller, however, should re-issue the send and pick up any error at a second attempt.

## What the upatch does

It attaches to the `socket_create` LSM hook and returns `-EPERM` when the address family is `AF_RXRPC` (33). Every path into `rxrpc_send_data()` needs an RxRPC socket, and the hook runs before the kernel allocates the socket or loads the `rxrpc` module. A refusal from an earlier BPF LSM program on the same hook is passed on unchanged.

The policy: [`cve-2026-99350-rxrpc-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-99350), 22 lines of BPF C attached at `lsm/socket_create`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- Creating an RxRPC socket fails with `EPERM`, from user space (`socket()`, `socketpair()`, io_uring) and from the kernel.
- The kernel's AFS client (kafs) can't open new RxRPC transports, so new AFS mounts fail.
- RxRPC sockets opened before the upatch was loaded keep working.
- Every other socket family works as before.

## Preemption model and cost

The program keeps no state: no maps, no shared or per-CPU data. It is correct under every preemption model, including preemptible RCU and `PREEMPT_RT`. Each run costs two integer comparisons, and it runs only when a socket is created, never on the data path.

## Affected versions

| Branch   | Bug added in | Fixed in            |
| -------- | ------------ | ------------------- |
| 5.10     | 5.10.140     | 5.10.275            |
| 5.15     | 5.15.64      | 5.15.226            |
| 5.19     | 5.19.6       | never (end of life) |
| 6.1      | 6.0          | 6.1.193             |
| 6.6      | 6.0          | 6.6.163             |
| 6.12     | 6.0          | 6.12.118            |
| 6.18     | 6.0          | 6.18.61             |
| 7.3      | 6.0          | 7.3.2               |
| mainline | 6.0          | 7.4-rc1             |

## How it was tested

While loaded, creating an RxRPC socket failed with EPERM and other socket families worked. The test kernel already has the fix and no RxRPC support, so this shows the refusal, not protection of a vulnerable kernel.

- **Tested:** 24 Nov 2026
- **Target:** Linux 7.4 with the fix and without RxRPC support
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Machine:** shirudo test VM

### Results

| State           | socket(AF_RXRPC, SOCK_DGRAM, PF_INET) | socket(AF_INET, SOCK_DGRAM, 0) |
| --------------- | ------------------------------------- | ------------------------------ |
| Before loading  | EAFNOSUPPORT                          | created                        |
| Upatch loaded   | EPERM                                 | created                        |
| After unloading | EAFNOSUPPORT                          | created                        |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-99350
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-99350-1.0.0.bee oci://<registry>/<namespace>/cve-2026-99350 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-99350-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab and shimont.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-99350 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-99350)
- [CVE-2026-99350 record (Linux kernel CNA)](https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-99350.json)
- [Announcement with affected and fixed versions](https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-99350.mbox)
- [Fix commit 7801c42c3bb7](https://git.kernel.org/stable/c/7801c42c3bb737cfb06194a383873fcad8daacf5)

### Links

- [CVE-2026-99350 on upatch.dev](https://upatch.dev/cve/CVE-2026-99350) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-99350)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-99350)
- Upatch source: [upatches/cve-2026-99350](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-99350)

### More references from NVD (8)

- [git.kernel.org](https://git.kernel.org/stable/c/35f7a69391ca0819d04ca6db3c2355848d633e16) (Patch)
- [git.kernel.org](https://git.kernel.org/stable/c/43ba0d1e2e2aaef662eeebb30b7065e54a92f153) (Patch)
- [git.kernel.org](https://git.kernel.org/stable/c/7801c42c3bb737cfb06194a383873fcad8daacf5) (Patch)
- [git.kernel.org](https://git.kernel.org/stable/c/965456110cf6952cc4eec80761171503e6e424df) (Patch)
- [git.kernel.org](https://git.kernel.org/stable/c/a1610975f8766ac492de56336086e7a895881947) (Patch)
- [git.kernel.org](https://git.kernel.org/stable/c/b878e2b7445a220746eaa3db0e448d6b4a122d2d) (Patch)
- [git.kernel.org](https://git.kernel.org/stable/c/d625b62be703e03d8ebe1caf578029d699009dcd) (Patch)
- [git.kernel.org](https://git.kernel.org/stable/c/ec98e8bdbde85e2dd2d43570e25b52bdfac1735b) (Patch)
