]> git.ipfire.org Git - thirdparty/openwrt.git/commit
uart: airoha: fix out-of-bounds access in baud rate calculation 23783/head
authorWayen Yan <win847@gmail.com>
Sun, 14 Jun 2026 03:19:21 +0000 (11:19 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Thu, 18 Jun 2026 20:15:36 +0000 (22:15 +0200)
commit3aeb95bf226133d745a1c58702ad0ecab3d63de3
treef3d079c1a4f9326ceb028eb4da0b28ab04a825b7
parent71d0568aa3cbe42dd5969440b5fa987d270936c6
uart: airoha: fix out-of-bounds access in baud rate calculation

The baud rate table lookup does not check if the requested index
is within bounds before accessing the array. This can cause
out-of-bounds read when an unsupported baud rate is requested.

Signed-off-by: Wayen Yan <win847@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23783
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/airoha/patches-6.18/886-uart-add-en7523-support.patch