Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829491 (CVE-2021-39685) - Linux Kernel USB Gadget buffer overflow
Summary: Linux Kernel USB Gadget buffer overflow
Status: CONFIRMED
Alias: CVE-2021-39685
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Security
URL: https://www.openwall.com/lists/oss-se...
Whiteboard:
Keywords:
Depends on: 829458 829459
Blocks:
  Show dependency tree
 
Reported: 2021-12-17 16:45 UTC by Michał Górny
Modified: 2022-04-13 06:00 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-12-17 16:45:13 UTC
Quoting ${URL}:

```
TLTR; The issue reported to the Linux security team allowed one to read 
and/or write up to 65kB of kernel memory past buffer boundaries by exploiting
lack of limiting of the usb control transfer request wLength in certain
gadget functions.
```

fixed: 5.15.8, 5.10.85, 5.4.165

Thanks to Sam for noticing and checking affected versions!
Comment 1 John Helmert III gentoo-dev Security 2021-12-22 20:25:16 UTC
kernel@: please stabilize fixed versions for gentoo-sources.
Comment 2 Mike Pagano gentoo-dev 2022-03-28 15:44:49 UTC
Affected gentoo-sources kernels are removed, newer ones are stabilized
Comment 3 Larry the Git Cow gentoo-dev 2022-04-13 06:00:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e7a45f555a91fcf9cd8d0848c6528e280c95ee8

commit 4e7a45f555a91fcf9cd8d0848c6528e280c95ee8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-13 06:00:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-13 06:00:19 +0000

    profiles: drop obsolete 5.14 masks
    
    Bug: https://bugs.gentoo.org/829491
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 8 --------
 1 file changed, 8 deletions(-)