Re: [PATCH net] sctp: fix a potential overflow in sctp_ifwdtsn_skip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Mon, 10 Apr 2023 15:43:30 -0400 you wrote:
> Currently, when traversing ifwdtsn skips with _sctp_walk_ifwdtsn, it only
> checks the pos against the end of the chunk. However, the data left for
> the last pos may be < sizeof(struct sctp_ifwdtsn_skip), and dereference
> it as struct sctp_ifwdtsn_skip may cause coverflow.
> 
> This patch fixes it by checking the pos against "the end of the chunk -
> sizeof(struct sctp_ifwdtsn_skip)" in sctp_ifwdtsn_skip, similar to
> sctp_fwdtsn_skip.
> 
> [...]

Here is the summary with links:
  - [net] sctp: fix a potential overflow in sctp_ifwdtsn_skip
    https://git.kernel.org/netdev/net/c/32832a2caf82

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





[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     SCTP

  Powered by Linux