From: Srinivas Kandagatla <srini@kernel.org>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
James Hilliard <james.hilliard1@gmail.com>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] nvmem: layouts: onie-tlv: check both field header and value bounds
Date: Tue, 24 Nov 2026 21:19:03 +0000 [thread overview]
Message-ID: <179555514386.419336.6401619877478994530.b4-ty@kernel.org> (raw)
In-Reply-To: <20261117-submit-nvmem-onie-tlv-bounds-v1-v1-1-2b114f1153cd@gmail.com>
On Tue, 17 Nov 2026 15:19:45 -0700, James Hilliard wrote:
> The table CRC does not validate individual field lengths. The field
> iterator can read a two-byte header when only one byte remains. Its
> value length check also counts the header as available space and can
> publish a cell extending beyond the table.
>
> Check the remaining space before reading the header and exclude the
> header from the space available for the value. Stop at the first
> truncated field, keeping any complete cells already registered.
>
> [...]
Applied, thanks!
[1/1] nvmem: layouts: onie-tlv: check both field header and value bounds
commit: 1f2bc0f3b7bd5e459f6f751d912ecc85009b170a
Best regards,
--
Srinivas Kandagatla <srini@kernel.org>
prev parent reply other threads:[~2026-11-24 21:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 22:19 James Hilliard
2026-11-24 21:19 ` Srinivas Kandagatla [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179555514386.419336.6401619877478994530.b4-ty@kernel.org \
--to=srini@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=james.hilliard1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®