Bluetooth: bnep: fix out-of-bounds reads on short RX/TX frames and control fallthrough
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: bnep: fix out-of-bounds reads on short RX/TX frames and control fallthrough Fix multiple out-of-bounds reads in Bluetooth BNEP frame processing: 1. In bnep_rx_frame() and bnep_ctrl_frame() (net/bluetooth/bnep/core.c), use pskb_may_pull() to verify the BNEP header, control type byte, filter count, and extension headers exist before reading them, and return 0 after handling BNEP_CONTROL instead of falling through to Ethernet frame submission when no extension headers follow. 2. In bnep_net_xmit() (net/bluetooth/bnep/netdev.c), verify skb->len >= ETH_HLEN with pskb_may_pull() before reading the 14-byte Ethernet header to prevent an out-of-bounds heap read and infoleak on short AF_PACKET TX frames.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 7af80ad2cebfe2f1879d6a39a1aaa061d9c4e1ca; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 667aa703e11cdc237d169393bc6a5ea9acbb33c2; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 3e605ff5932afe0970c2beca66f2f1ba2babe4dd; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 035f9b1809861967e58ce652680d70ea1502058f; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 1e7aebc188f889b56c3aaeb6133ef6d77022c887; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 8f31031326994d1abfcc6ebb6927ef96e51fb9ff; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in ad0d2d4ada51321db787262ef343193c712b76b5; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in f0ca020cbb9bb7f3f4ea8ba1dfcf30a282aec91e
- Linux Linux
2.6.12
- KernelLinux
From 2.6.12 · fixed in 5.10.271; From 5.11.0 · fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.55; From 6.19.0 · fixed in 7.2.9
References 8
git.kernel.org
- stable/c/7af80ad2cebfe2f1879d6a39a1aaa061d9c4e1ca
- stable/c/667aa703e11cdc237d169393bc6a5ea9acbb33c2
- stable/c/3e605ff5932afe0970c2beca66f2f1ba2babe4dd
- stable/c/035f9b1809861967e58ce652680d70ea1502058f
- stable/c/1e7aebc188f889b56c3aaeb6133ef6d77022c887
- stable/c/8f31031326994d1abfcc6ebb6927ef96e51fb9ff
- stable/c/ad0d2d4ada51321db787262ef343193c712b76b5
- stable/c/f0ca020cbb9bb7f3f4ea8ba1dfcf30a282aec91e