Bluetooth: MGMT: validate LTK enc_size on load
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 346af67b8d116f01ef696fd47959a55deb2db8b6 · < 50fb64defa72a3fecd0af1ca7c6b47b5c5c2b257| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: MGMT: validate LTK enc_size on load
Load Long Term Keys stores the user-provided enc_size and later uses it to size fixed-size stack operations when replying to LE LTK requests. An enc_size larger than the 16-byte key buffer can therefore overflow the reply stack buffer.
Reject oversized enc_size values while validating the management LTK record so invalid keys never reach the stored key state.
From the CVE record · Linux
The Linux kernel’s Bluetooth management interface accepts an oversized encryption key size when loading Long Term Keys. Someone able to submit a crafted key record could cause a stack buffer overflow when the kernel later replies to an LE LTK request. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with Bluetooth MGMT should check their exposure; affected versions were not provided.