cvelo
P4 · InfoEPSS 0.3%

netlink: check sk_rcvbuf before charging the dump skb

  • CVE-2026-139092
  • GHSA-vfg6-x7h6-7wp3
  • EUVD-2026-138645

Description

Show the whole description

In the Linux kernel, the following vulnerability has been resolved: netlink: check sk_rcvbuf before charging the dump skb Since commit ae8f160e7eb2 ("netlink: Fix wraparounds of sk->sk_rmem_alloc."), netlink_dump() charges the dump skb first and queues it only if sk_rmem_alloc is still below sk_rcvbuf. Commit a215b5723922 ("netlink: make sure we allow at least one dump skb") added an exception for an empty socket. A dump that starts while something else is still charged to a socket with a small receive buffer fails with ENOBUFS and stays running. Every recvmsg() retries it, fails again and sets sk_err, so a reader that peeks before reading, as libnl does, gets ENOBUFS on the read after each peek, never consumes the message at the head of the queue and spins forever. I hit this with "iw dev wlan0 scan" hanging at 100% CPU on an arm64 board with a 6.6 based kernel (iw 5.19 sets SO_RCVBUF to 8KiB). A kprobe trace showed the scan dump starting while the NEW_SCAN_RESULTS notification iw had just read was still charged to its socket, because iw had preempted the sender before netlink_broadcast() returned. Check the limit before charging, as before ae8f160e7eb2, which also covers the empty socket. netlink_recvmsg() continues a dump only at or below half of sk_rcvbuf, so the skb is then always queued, and a dump goes over the limit by at most one skb. Refuse a skb that would take sk_rmem_alloc past INT_MAX, so the wraparound stays fixed. Reproduced on net in a KVM guest with a userspace reproducer and the selftest in the next patch; both pass with this fix.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run 6.12.xupdate to 6.12.119 or laterPatch update: breaking changes are unlikely
    • If you run 6.6.xupdate to 6.6.163 or laterPatch update: breaking changes are unlikely
    • If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
    • If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
    • If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
    • If you run a version from 5.4.296 to before 5.5update to 5.5 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.12.39 to before 6.12.1196.12.119
    from 6.6.99 to before 6.6.1636.6.163
    from 6.1.146 to before 6.1.1936.1.193
    from 5.15.189 to before 5.15.2265.15.226
    from 5.10.240 to before 5.10.2755.10.275
    from 5.4.296 to before 5.55.5
    from 6.15.7 to before 6.16none stated
    6.16none stated

    and 9 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.