# CVE-2026-139547: bpf: arena: Allocate the fault-in page outside the lock

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:46.285Z
- **Modified:** 2026-11-30T14:19:33.020Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 321b0dc5e8ad65ed5a2400000702071b86cbfc2c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c7cd8be3d72f9b03454424fff31542b8a0122437; \< 7.3.6
- Anyone running Linux all versions

## Description

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

bpf: arena: Allocate the fault-in page outside the lock

arena\_vm\_fault() allocated the page while holding arena-\>spinlock, so it
could only use the non-blocking allocator, which never reclaims. Once the
memcg is at memory.max that allocation just fails, the fault turns into
VM\_FAULT\_SIGSEGV, and the process gets a SIGSEGV on a perfectly valid
arena address. Hitting memory.max is routine (e.g. page cache from
reading a big file), so this kills innocent processes over memory that
reclaim could have freed.

Rework the fault handler:

- Preallocate the page before taking the lock, like do\_anonymous\_page()
  does, so it can sleep and reclaim, instead of turning a routine
  memory.max into a fake segfault. The allocation uses
  \_\_GFP\_RETRY\_MAYFAIL so it never invokes the OOM killer: the page is
  charged to the map's memcg, which need not be the faulting task's, so
  an OOM there could kill unrelated tasks in the map's cgroup while a
  foreign faulter could never be its victim. map-\>numa\_node is always
  NUMA\_NO\_NODE for an arena (BPF\_F\_NUMA\_NODE is rejected), so the page
  comes from the local node, as before.

- On allocation failure fall through to the locked recheck rather than
  failing right away: a page a concurrent allocator installed meanwhile
  is used, otherwise the non-blocking fallback fails and we return
  VM\_FAULT\_SIGBUS. Not VM\_FAULT\_OOM: nothing ran the OOM killer, and the
  fault path would just retry it forever.

- A lockless probe skips that preallocation when a page is already mapped
  (e.g. allocated by the bpf program), so the common case wastes no
  allocation. The rare race where such a page is freed before we take the
  lock falls back to the non-blocking allocator under the lock.

- Return VM\_FAULT\_SIGBUS for the other non-recoverable errors
  (allocation, range-tree and page-table failures) instead of
  VM\_FAULT\_SIGSEGV; the lock failure already did. Only
  BPF\_F\_SEGV\_ON\_FAULT, and a scratch-page hole under that flag, is a
  real user addressing error and keeps VM\_FAULT\_SIGSEGV.

- Tidy up the error labels.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 321b0dc5e8ad65ed5a2400000702071b86cbfc2c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c7cd8be3d72f9b03454424fff31542b8a0122437; \< 7.3.6 (cvelist)
- Linux: all versions (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 7.3.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139547. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139547.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 321b0dc5e8ad65ed5a2400000702071b86cbfc2c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c7cd8be3d72f9b03454424fff31542b8a0122437; < 7.3.6; Linux all versions
Fixed in: Linux 321b0dc5e8ad65ed5a2400000702071b86cbfc2c, Linux 7.3.6

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-2026-139547 being exploited?

There is no confirmed exploitation: CVE-2026-139547 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139547?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139547?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 321b0dc5e8ad65ed5a2400000702071b86cbfc2c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c7cd8be3d72f9b03454424fff31542b8a0122437; \< 7.3.6; Linux all versions.

### Is there a fix for CVE-2026-139547?

Yes. Fixed in Linux 321b0dc5e8ad65ed5a2400000702071b86cbfc2c, Linux 7.3.6. Upgrade Linux to 7.3.6 or later.

### How do I check if I'm affected by CVE-2026-139547?

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

- other: <https://git.kernel.org/stable/c/321b0dc5e8ad65ed5a2400000702071b86cbfc2c>
- other: <https://git.kernel.org/stable/c/c7cd8be3d72f9b03454424fff31542b8a0122437>

## 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-2026-139547>

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