Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172748 (CVE-2007-1353) - Kernel: [Bluetooth] Fix L2CAP and HCI setsockopt() information leaks (CVE-2007-1353)
Summary: Kernel: [Bluetooth] Fix L2CAP and HCI setsockopt() information leaks (CVE-200...
Alias: CVE-2007-1353
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
Whiteboard: [linux < 2.6.22]
Depends on:
Reported: 2007-03-30 06:26 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2013-09-15 18:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-03-30 06:26:54 UTC
The L2CAP and HCI setsockopt() implementations have a small information
leak that makes it possible to leak kernel stack memory to userspace.

If the optlen parameter is 0, no data will be copied by copy_from_user(),
but the uninitialized stack buffer will be read and stored later. A call
to getsockopt() can now retrieve the leaked information.

To fix this problem the stack buffer given to copy_from_user() must be
initialized with the current settings.

Signed-off-by: Marcel Holtmann <>
Comment 1 Lars Hartmann 2007-04-25 19:09:27 UTC

The weaknesses are reported in versions prior to

Update to version
Comment 2 unnamedrambler 2008-03-08 19:12:43 UTC
According to git commit 0878b6667f28772aa7d6b735abff53efc7bf6d91  2.6.* was also vulnerable. It was patched in 2.6.22.

[linux < 2.6.22]
Comment 3 Gustavo F. Padovan 2010-02-02 02:11:54 UTC
We don't have 2.6.22 kernels anymore on portage. Looks we can close this bug.