usb: class: cdc-wdm: fix reordering issue in read code path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e3c874b05901dc519054b5107d16620e6d2b5fea, Kernel 5.15.203, Kernel 6.1.167 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: usb: class: cdc-wdm: fix reordering issue in read code path Quoting the bug report: Due to compiler optimization or CPU out-of-order execution, the desc->length update can be reordered before the memmove. If this happens, wdm_read() can see the new length and call copy_to_user() on uninitialized memory. This also violates LKMM data race rules [1]. Fix it by using WRITE_ONCE and memory barriers.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=afba937e540c902c989cd516fd97ea0c8499bb27 <e3c874b05901dc519054b5107d16620e6d2b5fea, >=5.11 <5.15.203, >=5.16 <6.1.167, >=6.13 <6.18.19, >=6.19 <6.19.9, >=6.2 <6.6.130, >=6.7 <6.12.78, =2.6.26, =7.0, >=afba937e540c902c989cd516fd97ea0c8499bb27 <276aef0fd2b92f41b920ac891c72cadeee957934, >=afba937e540c902c989cd516fd97ea0c8499bb27 <4ee3062bf2c9a722afef429826e8607eaf3fc6a0, >=afba937e540c902c989cd516fd97ea0c8499bb27 <638328ca9c17ae6511ad62198c57bae32ffa3c91, >=afba937e540c902c989cd516fd97ea0c8499bb27 <67ed312124bb1b61858778ac0b985b48961c862a, >=afba937e540c902c989cd516fd97ea0c8499bb27 <8df672bfe3ec2268c2636584202755898e547173, >=afba937e540c902c989cd516fd97ea0c8499bb27 <c8fa96ed021923dae147bcd9f9205b8df7b82360, >=2.6.26.1 <5.10.253, >=afba937e540c902c989cd516fd97ea0c8499bb27 <170e8daca24da6edb4be82ab01abf44e87af387b | e3c874b05901dc519054b5107d16620e6d2b5fea, 5.15.203, 6.1.167, 6.18.19, 6.19.9, 6.6.130, 6.12.78, 276aef0fd2b92f41b920ac891c72cadeee957934, 4ee3062bf2c9a722afef429826e8607eaf3fc6a0, 638328ca9c17ae6511ad62198c57bae32ffa3c91, 67ed312124bb1b61858778ac0b985b48961c862a, 8df672bfe3ec2268c2636584202755898e547173, c8fa96ed021923dae147bcd9f9205b8df7b82360, 5.10.253, 170e8daca24da6edb4be82ab01abf44e87af387b |
| linux-kernel: Kernel | >=2.6.26 <5.10.253, >=5.11.0 <5.15.203, >=5.16.0 <6.1.167, >=6.13.0 <6.18.19, >=6.19.0 <6.19.9, >=6.2.0 <6.6.130, >=6.7.0 <6.12.78 | 5.10.253, 5.15.203, 6.1.167, 6.18.19, 6.19.9, 6.6.130, 6.12.78 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket