CVE-2026-139451

Not scored yetLast modified Nov 30, 2026

Description

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

bpf, arm64: Fix racy plt target update in bpf_arch_text_poke()

When a long-jump trampoline is attached to or detached from a bpf prog, bpf_arch_text_poke() updates the plt target at the end of the prog by temporarily making the page writable:

set_memory_rw(page); WRITE_ONCE(plt->target, plt_target); set_memory_ro(page);

Since commit 1dad391daef1 ("bpf, arm64: use bpf_prog_pack for memory management"), bpf progs are allocated from the bpf prog pack, so unrelated progs and their plts commonly share a page. The sequence above is not serialized against other pokers, it runs before text_mutex is taken and callers only hold the lock of the trampoline being updated. Two CPUs attaching to or detaching from different target progs in the same page can therefore race:

CPU A CPU B set_memory_rw(page) set_memory_rw(page) WRITE_ONCE(plt_B->target, ...) set_memory_ro(page) WRITE_ONCE(plt_A->target, ...) <- permission fault

This was hit on an arm64 server with 64K pages while attaching fentry programs to bpf progs:

Unable to handle kernel write to read-only memory at virtual address ffff80008f46d5f8 ESR = 0x000000009600004f FSC = 0x0f: level 3 permission fault pte=00c00200ea5a0783 Internal error: Oops: 000000009600004f [#1] SMP pc : bpf_arch_text_poke+0x214/0x238 lr : bpf_arch_text_poke+0x200/0x238 Call trace: bpf_arch_text_poke+0x214/0x238 (P) __bpf_trampoline_link_prog+0x1c8/0x470 bpf_trampoline_link_prog+0x64/0x90 bpf_tracing_prog_attach+0x318/0x4a8 bpf_raw_tp_link_attach+0x104/0x258 bpf_raw_tracepoint_open+0x6c/0x90 __sys_bpf+0x134c/0x3e10

Rather than serializing the permission changes, stop changing page permissions altogether and write the plt target with aarch64_insn_write_literal_u64(). It writes through the text patching fixmap under patch_lock, the same way the rest of the prog pack is written, and performs a single-copy atomic 64-bit store. The plt target is naturally aligned (see build_plt()), so CPUs concurrently executing the plt still observe either the old or the new target. This is the same helper ftrace and static calls use to update 64-bit literals that are loaded concurrently.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139452In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: Disable unsol event handling at error and shutdown paths WhCVE-2026-139453In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: Stop unsol events and jack polling before codec unbind At uCVE-2026-139454In the Linux kernel, the following vulnerability has been resolved: cxl/port: Attach endpoints to a dport under the lock that pins it devmCVE-2026-139455In the Linux kernel, the following vulnerability has been resolved: cxl/core: Hold the dport host lock across dport lookup and use CallersCVE-2026-139456In the Linux kernel, the following vulnerability has been resolved: bpf: Fix arg_track_xfer() for atomic stack spills and fills Track spilCVE-2026-139457In the Linux kernel, the following vulnerability has been resolved: vfio/pci: Drain eventfd RCU callbacks on module exit vfio_pci_eventfd_CVE-2026-139458In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Safely terminate ACS redirect lists seq_buf marks an overfCVE-2026-139459In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Wait for RCU readers before freeing state pci_p2pmem_find_CVE-2026-139464.3Inappropriate implementation in ScriptInjections in Google Chrome on iOS prior to 150.0.7871.47 allowed a remote attacker to leak cross-origCVE-2026-139460In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Do not tear down the allocate attribute on registration faiCVE-2026-139461In the Linux kernel, the following vulnerability has been resolved: dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPINGCVE-2026-139462In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: reg: protect regdb pointer with RCU reg_query_regdb_wm
CVE-2026-139451: Unscored | Vulnix