]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
Bluetooth: Properly check L2CAP config option output buffer length
authorBen Seri <ben@armis.com>
Sat, 9 Sep 2017 21:15:59 +0000 (23:15 +0200)
committerJuerg Haefliger <juerg.haefliger@canonical.com>
Wed, 13 Sep 2017 05:58:01 +0000 (07:58 +0200)
commit6babb60c4b776b1044ef481b4dd4a8e4e54f9f24
treed1e7c7473d4f7315433dbe5424a744ac59976d0f
parent4606fa43c0abb8edd6374f295fabe30d5d365afe
Bluetooth: Properly check L2CAP config option output buffer length

Validate the output buffer length for L2CAP config requests and responses
to avoid overflowing the stack buffer used for building the option blocks.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Seri <ben@armis.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
CVE-2017-1000251

(cherry-picked from commit e860d2c904d1a9f38a24eb44c9f34b8f915a6ea3)
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
net/bluetooth/l2cap_core.c