APPLIED: [SRU][F][PATCH 0/1] sctp: sysctl: pass right argument to container_of

Stefan Bader stefan.bader at canonical.com
Thu Mar 13 15:31:51 UTC 2025


On 11.03.25 15:16, Magali Lemes wrote:
> BugLink: https://bugs.launchpad.net/bugs/2101091
> 
> [Impact]
> The `member` argument passed to `container_of` has been swapped in both
> proc_sctp_do_auth() and proc_sctp_do_hmac_alg(), which can lead to a kernel
> oops or panic.
> 
> [Fix]
> Match mainline commits ea62dd1383913b and 15649fd5415e by passing the right
> arguments to `container_of` in proc_sctp_do_auth() and proc_sctp_do_hmac_alg().
> 
> [Test Case]
> Run `modprobe sctp && cat /proc/sys/net/sctp/cookie_hmac_alg` and check that
> no oops or panic have appeared in the kernel logs.
> 
> [Where problems could occur]
> Limited to SCTP connections.
> 
> Magali Lemes (1):
>    UBUNTU: SAUCE: sctp: sysctl: pass right argument to container_of
> 
>   net/sctp/sysctl.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
Applied to 2025-02-10-6 focal:linux (and derivatives). Thanks.

-Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE8675DEECBEECEA3.asc
Type: application/pgp-keys
Size: 47863 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250313/34e46e06/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250313/34e46e06/attachment-0001.sig>


More information about the kernel-team mailing list