lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220317170449.qxcf4yi4rzlgbwzu@bsd-mbp.dhcp.thefacebook.com>
Date:   Thu, 17 Mar 2022 10:04:49 -0700
From:   Jonathan Lemon <jonathan.lemon@...il.com>
To:     Dan Carpenter <dan.carpenter@...cle.com>
Cc:     Richard Cochran <richardcochran@...il.com>,
        "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
        kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net-next] ptp: ocp: fix sprintf overflow in
 ptp_ocp_verify()

On Thu, Mar 17, 2022 at 10:59:57AM +0300, Dan Carpenter wrote:
> The "chan" value comes from the user via sysfs.  A large like UINT_MAX
> could overflow the buffer by three bytes.  Make the buffer larger and
> use snprintf() instead of sprintf().
> 
> Fixes: 1aa66a3a135a ("ptp: ocp: Program the signal generators via PTP_CLK_REQ_PEROUT")
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>

This needs to be respun to catch up with the last patch.
-- 
Jonathan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ