Linux
Bluetooth: RFCOMM: validate skb length in MCC handlers
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: validate skb length in MCC handlers The RFCOMM MCC handlers cast skb->data to protocol-specific structs without validating skb->len first. A malicious remote device can send truncated MCC frames and trigger out-of-bounds reads in these handlers. Fix this by using skb_pull_data() to validate and access the required data before dereferencing it. rfcomm_recv_rpn() requires special handling since ETSI TS 07.10 allows 1-byte RPN requests. Handle this by validating only the DLCI byte first, and validating the full struct only when len > 1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7c15c7c2878957cbfed93bcc29c13fdace464254
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0d637136ce89f9a2309b2c3502402ce400dab0ef
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 98377e6b1a1a56561ec66a181573ea2b61b2079e
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1b070ac9e99c2c2c3a8112943ca98ab6fca7f10c
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 3eabc6d47a0ad22b053329997aaf0ec1e581e392
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 08b9c1fbe78f4ad3f6250c6541cfaabdbeb81997
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 23882b828c3c8c51d0c946446a396b10abb3b16b
Fixed in 7c15c7c2878957cbfed93bcc29c13fdace464254, 0d637136ce89f9a2309b2c3502402ce400dab0ef, 98377e6b1a1a56561ec66a181573ea2b61b2079e, 1b070ac9e99c2c2c3a8112943ca98ab6fca7f10c, 3eabc6d47a0ad22b053329997aaf0ec1e581e392, 08b9c1fbe78f4ad3f6250c6541cfaabdbeb81997, 23882b828c3c8c51d0c946446a396b10abb3b16b
- 2.6.12
Fixed in 0, 5.15.210, 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 7c15c7c2878957cbfed93bcc29c13fdace464254 or 0d637136ce89f9a2309b2c3502402ce400dab0ef or 98377e6b1a1a56561ec66a181573ea2b61b2079e or 1b070ac9e99c2c2c3a8112943ca98ab6fca7f10c or 3eabc6d47a0ad22b053329997aaf0ec1e581e392 or 08b9c1fbe78f4ad3f6250c6541cfaabdbeb81997 or 23882b828c3c8c51d0c946446a396b10abb3b16b or later.
Upgrade Linux to 0 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.