mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Srinivas Kandagatla <srini@kernel.org>
To: Dmitry Baryshkov <lumag@kernel.org>,
	 Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 Janne Grunau <j@jannau.net>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	 Dmitry Sinyavin <sinyavin@gmail.com>
Subject: Re: [PATCH v2] nvmem: core: Fix OOB read for bit offsets of more than one byte
Date: Sun, 20 Sep 2026 17:58:10 +0100	[thread overview]
Message-ID: <178992349090.879561.13513828114190223028.b4-ty@kernel.org> (raw)
In-Reply-To: <20260920-nvmem-read-oob-bit-offset-v2-1-feeb7b672059@jannau.net>


On Sun, 20 Sep 2026 18:46:19 +0200, Janne Grunau wrote:
> When the bit offset is BITS_PER_BYTE or larger the read position is
> advanced by `bytes_offset`. This is not taken into account in the
> per-byte read loop which still reads `cell->bytes` resulting in an out of
> bounds read of `bytes_offset` bytes. The information read OOB does not
> leak directly as the erroneously read bits are cleared.
> 
> Detected by KASAN while looking for a use-after-free in simplefb.c.
> 
> [...]

Applied, thanks!

[1/1] nvmem: core: Fix OOB read for bit offsets of more than one byte
      commit: 841ea6e56cc88ec2c28826d62fbab88b234524c5

Best regards,
-- 
Srinivas Kandagatla <srini@kernel.org>


      reply	other threads:[~2026-09-20 16:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-20 16:46 Janne Grunau
2026-09-20 16:58 ` 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=178992349090.879561.13513828114190223028.b4-ty@kernel.org \
    --to=srini@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=j@jannau.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=sinyavin@gmail.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®