VDB

CVE-2026-31498

CVE-2026-31498 PUBLISHED

Bluetooth: L2CAP: Fix ERTM re-init and zero pdu_len infinite loop

Reported by linux · Published April 22, 2026

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Fix ERTM re-init and zero pdu_len infinite loop l2cap_config_req() processes CONFIG_REQ for channels in BT_CONNECTED state to support L2CAP reconfiguration (e.g. MTU changes). However, since both CONF_INPUT_DONE and CONF_OUTPUT_DONE are already set from the initial configuration, the reconfiguration path falls through to l2cap_ertm_init(), which re-initializes tx_q, srej_q, srej_list, and retrans_list without freeing the previous allocations and sets chan->sdu to NULL without freeing the existing skb. This leaks all previously allocated ERTM resources. Additionally, l2cap_parse_conf_req() does not validate the minimum value of remote_mps derived from the RFC max_pdu_size option. A zero value propagates to l2cap_segment_sdu() where pdu_len becomes zero, causing the while loop to never terminate since len is never decremented, exhausting all available memory. Fix the double-init by skipping l2cap_ertm_init() and l2cap_chan_ready() when the channel is already in BT_CONNECTED state, while still allowing the reconfiguration parameters to be updated through l2cap_parse_conf_req(). Also add a pdu_len zero check in l2cap_segment_sdu() as a safeguard.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.19.11, 6.18.21, 6.12.80, 6.6.131, 6.1.168, 5.15.203, 5.10.253, 5.5, 4.20, 4.15, 4.10, 4.5

Affected products

VendorProductVersions
LinuxLinux96298f640104e4cd9a913a6e50b0b981829b94ff, 96298f640104e4cd9a913a6e50b0b981829b94ff, 96298f640104e4cd9a913a6e50b0b981829b94ff
LinuxLinux5.7, 0, 5.10.253
linuxlinux_kernel5.7, 5.7, 5.7
LinuxLinux96298f640104e4cd9a913a6e50b0b981829b94ff, 96298f640104e4cd9a913a6e50b0b981829b94ff, 96298f640104e4cd9a913a6e50b0b981829b94ff

Timeline

  • Apr 22, 2026 CVE Published
  • Apr 23, 2026 Security Advisory (97 in total, the first dated here)
  • May 18, 2026 EPSS Score (25 in total, the first dated here)
  • Jul 16, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (92 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-31498
vulnetix vdb fixes CVE-2026-31498

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-31498/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›