APPLIED: [SRU][F:linux-bluefield][PATCH v2 0/1] UBUNTU: SAUCE: Fix references to sprintf that may cause buffer overflow

Luke Nowakowski-Krijger luke.nowakowskikrijger at canonical.com
Wed Feb 9 00:17:56 UTC 2022


Applied to Focal:linux-bluefield

Thanks!

- Luke

On Thu, Jan 27, 2022 at 8:17 AM Jitendra Lanka <jlanka at nvidia.com> wrote:

> BugLink: https://bugs.launchpad.net/bugs/1959119
>
> SRU Justification:
>
> [Impact]
> Fix references to sprintf that have a possibility for buffer overflow
>
> [Fix]
> Replace sprintf with snprintf containing a defined boundary of PAGE_SIZE
> for sysfs store/show functions and max array size defined otherwise.
>
> [Test Case]
> Existing testcases should work as is as no functional change has been
> introduced by this patch.
>
> [Regression Potential]
> Regression potential can be considered minimal since the patch does not
> change any function of the driver other than limiting the upper bound of
> sprintf where the usual lengths parsed are < PAGE_SIZE and requests >
> PAGE_SIZE are limited.
>
>
> Jitendra Lanka (1):
>   Fix references to sprintf that may cause buffer overflow
>
>  drivers/platform/mellanox/mlxbf-pmc.c | 17 ++++++++++-------
>  1 file changed, 10 insertions(+), 7 deletions(-)
>
> --
> 2.30.1
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20220208/7f688912/attachment.html>


More information about the kernel-team mailing list