From: Takashi Iwai <tiwai@suse.de>
To: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Cc: perex@perex.cz, tiwai@suse.de, linux-kernel@vger.kernel.org,
linux-sound@vger.kernel.org
Subject: Re: [PATCH] ALSA: pcm: Avoid reading beyond ELD monitor name
Date: Fri, 20 Nov 2026 18:11:11 +0100 [thread overview]
Message-ID: <874idbwhqo.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261120124607.2799-1-sreekuttan2156239@gmail.com>
On Fri, 20 Nov 2026 13:46:07 +0100,
Sreeraj S Kurup wrote:
>
> snd_parse_eld() checks that mnl bytes are available in the ELD
> buffer, but passes mnl + 1 as the source size to strscpy().
>
> When the monitor name is not NUL-terminated and the buffer ends
> immediately after the mnl bytes, strscpy() may read beyond the
> provided buffer.
>
> Copy exactly mnl bytes and explicitly terminate the destination
> to avoid accessing a byte beyond the validated input length.
>
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Applied to for-next branch. Thanks.
Takashi
prev parent reply other threads:[~2026-11-20 17:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 12:46 [PATCH] ALSA: pcm: Avoid reading beyond ELD monitor name Sreeraj S Kurup
2026-11-20 17:11 ` Takashi Iwai [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=874idbwhqo.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=sreekuttan2156239@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.