Thread (3 messages) 3 messages, 3 authors, 2022-02-15

Re: [PATCH] CDC-NCM: avoid overflow in sanity checking

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2022-02-15 15:00:14
Also in: linux-usb

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller [off-list ref]:

On Tue, 15 Feb 2022 11:35:47 +0100 you wrote:
A broken device may give an extreme offset like 0xFFF0
and a reasonable length for a fragment. In the sanity
check as formulated now, this will create an integer
overflow, defeating the sanity check. Both offset
and offset + len need to be checked in such a manner
that no overflow can occur.
And those quantities should be unsigned.

[...]
Here is the summary with links:
  - CDC-NCM: avoid overflow in sanity checking
    https://git.kernel.org/netdev/net/c/8d2b1a1ec9f5

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help