From: Vincent Mailhol <mailhol@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
Vincent Mailhol <mailhol@kernel.org>,
stable@vger.kernel.org, Kees Cook <kees@kernel.org>
Subject: [PATCH v2 0/2] lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()
Date: Thu, 23 Jul 2026 21:40:30 +0200 [thread overview]
Message-ID: <20260723-fix-ucs2_strnlen-v2-0-9ea94e32a358@kernel.org> (raw)
This series fixes an off-by-one out-of-bounds read in ucs2_strnlen().
The first patch is the real fix, the second patch comes as a bonus and
fixes the code indentation.
Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
---
Changes in v2:
- Toggle the patch order. ucs2_strnlen() is now before the
tabulation fix to make it easier to backport.
- Add Cc: stable on the ucs2_strnlen().
Link to v1: https://lore.kernel.org/r/20260722-fix-ucs2_strnlen-v1-0-ba5bade2b026@kernel.org
---
Vincent Mailhol (2):
lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()
lib/ucs2_string.c: fix indentation
lib/ucs2_string.c | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
---
base-commit: 1590cf0329716306e948a8fc29f1d3ee87d3989f
change-id: 20260722-fix-ucs2_strnlen-145f5d4b1f6b
Best regards,
--
Vincent Mailhol <mailhol@kernel.org>
next reply other threads:[~2026-07-23 19:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 19:40 Vincent Mailhol [this message]
2026-07-23 19:40 ` [PATCH v2 1/2] " Vincent Mailhol
2026-07-24 5:54 ` Greg KH
2026-07-24 6:59 ` Vincent Mailhol
2026-07-24 8:34 ` Greg KH
2026-07-23 19:40 ` [PATCH v2 2/2] lib/ucs2_string.c: fix indentation Vincent Mailhol
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=20260723-fix-ucs2_strnlen-v2-0-9ea94e32a358@kernel.org \
--to=mailhol@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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®