Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Andrew Lunn
Mon, 19 Oct 2026 15:47
Re: [PATCH net v3 3/3] net: fealnx: bound card_idx to prevent out-of-bounds access
Author: Andrew Lunn
Date: Mon, 19 Oct 2026 15:47
Date: Mon, 19 Oct 2026 15:47
30 lines
9975 bytes
9975 bytes
On Mon, Oct 19, 2026 at 01:43:03PM +0000, ΠΠ°ΠΌΠ±Π°ΠΊΠΈΠ΅Π² Π Π°Π΄ΠΈΠΉ Π ΠΈΠΊΠ°ΡΠ΄ΠΈΠ½ΠΎΠ²ΠΈΡ wrote:
> From: Radiy Zhambakiev <r.zhambakiev@prosoftsystems.ru>
>
> card_idx is a static counter that is incremented on every
> probe. It can overflow and wrap to a negative value, which
> then indexes options[] and full_duplex[] out of bounds.
> Large values also no longer fit in the 12-byte boardname[]
> buffer.
>
> Bound card_idx to 99999, the largest value that still fits
> into boardname, and fail the probe for any card beyond that.
>
> fealnx is an old driver that cannot be tested properly on
> real hardware, so a minimal best-effort guard was chosen
> over a larger rework.
>
> Found by Linux Verification Center (linuxtesting.org)
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@vger.kernel.org
> Signed-off-by: Radiy Zhambakiev <r.zhambakiev@prosoftsystems.ru>
Please drop the Fixes: when you repost to net-next. This is one of
those theoretical fixes which never happens and nobody cares about, so
there is no need to backport it to stable.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads