CVE-2026-90159: bpf: Disallow bpf_{g,s}etsockopt() in cgroup UNIX getname hooks

Published Sep 17, 2026
·
Updated

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

bpf: Disallow bpf{g,s}etsockopt() in cgroup UNIX getname hooks

bpfsetsockopt() and bpfgetsockopt() call sockownedbyme() for full sockets, so these helpers expect the socket lock to be held.

BPFCGROUPUNIXGETPEERNAME and BPFCGROUPUNIXGETSOCKNAME run BPF programs without acquiring the socket lock. A program attached to either hook can therefore trigger the sockownedbyme() warning by calling bpfsetsockopt() or bpfgetsockopt().

Disallow bpfsetsockopt() and bpfgetsockopt() for CGROUPUNIXGETPEERNAME and CGROUPUNIXGETSOCKNAME.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Disallow bpf_setsockopt() and bpf_getsockopt() for cgroup hook BPF_CGROUP_UNIX_GETPEERNAME and BPF_CGROUP_UNIX_GETSOCKNAME.

    Linux kernel BPF cgroup UNIX getname hooks bpf_setsockopt()/bpf_getsockopt() allowance for BPF_CGROUP_UNIX_GETPEERNAME and BPF_CGROUP_UNIX_GETSOCKNAME = disallow

Event History

Sep 17, 2026
CVE Published
via MITRE·04:06 PM
Data Sourced
via MITRE·04:06 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

A BPF program must be attached to either the CGROUP_UNIX_GETPEERNAME or CGROUP_UNIX_GETSOCKNAME hook and call bpf_setsockopt() or bpf_getsockopt(). Those hooks run without acquiring the socket lock expected by the helpers.

2

What is the observed impact when the issue is triggered?

The program can trigger the sock_owned_by_me() warning when either helper is called from one of the affected hooks.

3

What can be done before applying the resolved kernel change?

Do not use bpf_setsockopt() or bpf_getsockopt() in BPF programs attached to the affected CGROUP_UNIX_GETPEERNAME and CGROUP_UNIX_GETSOCKNAME hooks. The resolved change disallows those helper calls for these hooks.

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