Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833112 (CVE-2022-0435) - Potential stack overflow in tipc_mon_rcv()
Summary: Potential stack overflow in tipc_mon_rcv()
Alias: CVE-2022-0435
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Security
Depends on:
Reported: 2022-02-11 08:57 UTC by Michał Górny
Modified: 2022-03-26 01:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-02-11 08:57:58 UTC
The CVE is still marked as reserved but the commit is in the latest releases:

commit 59ff7514f8c56f166aadca49bcecfa028e0ad50f
Author: Jon Maloy <>
Date:   Sat Feb 5 14:11:18 2022 -0500

    tipc: improve size validations for received domain records
    commit 9aa422ad326634b76309e8ff342c246800621216 upstream.
    The function tipc_mon_rcv() allows a node to receive and process
    domain_record structs from peer nodes to track their views of the
    network topology.
    This patch verifies that the number of members in a received domain
    record does not exceed the limit defined by MAX_MON_DOMAIN, something
    that may otherwise lead to a stack overflow.
    tipc_mon_rcv() is called from the function tipc_link_proto_rcv(), where
    we are reading a 32 bit message data length field into a uint16.  To
    avert any risk of bit overflow, we add an extra sanity check for this in
    that function.  We cannot see that happen with the current code, but
    future designers being unaware of this risk, may introduce it by
    allowing delivery of very large (> 64k) sk buffers from the bearer
    layer.  This potential problem was identified by Eric Dumazet.
    This fixes CVE-2022-0435
    Reported-by: Samuel Page <>
    Reported-by: Eric Dumazet <>
    Fixes: 35c55c9877f8 ("tipc: add neighbor monitoring framework")
    Signed-off-by: Jon Maloy <>
    Reviewed-by: Xin Long <>
    Reviewed-by: Samuel Page <>
    Reviewed-by: Eric Dumazet <>
    Signed-off-by: Linus Torvalds <>
    Signed-off-by: Greg Kroah-Hartman <>
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-02-11 09:02:38 UTC
The fix is in:

Comment 2 Larry the Git Cow gentoo-dev 2022-02-11 13:33:48 UTC
The bug has been referenced in the following commit(s):

commit c86bfed4c150c1f915af7f6f39b6eccfede8a288
Author:     Mike Pagano <>
AuthorDate: 2022-02-11 13:33:41 +0000
Commit:     Mike Pagano <>
CommitDate: 2022-02-11 13:33:41 +0000

    sys-kernel/gentoo-sources: Linux version bumps and genpatches
    This addresses CVE-2022-0435
    Linux 5.16.9
    Linux 5.15.23
    Linux 5.10.100
    Linux 5.4.179
    Linux 4.19.229
    Linux 4.14.266
    Linux 4.9.301
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Mike Pagano <>

 sys-kernel/gentoo-sources/Manifest                 | 21 ++++++++++++++++
 .../gentoo-sources/gentoo-sources-4.14.266.ebuild  | 28 ++++++++++++++++++++++
 .../gentoo-sources/gentoo-sources-4.19.229.ebuild  | 28 ++++++++++++++++++++++
 .../gentoo-sources/gentoo-sources-4.9.301.ebuild   | 28 ++++++++++++++++++++++
 .../gentoo-sources/gentoo-sources-5.10.100.ebuild  | 28 ++++++++++++++++++++++
 .../gentoo-sources/gentoo-sources-5.15.23.ebuild   | 28 ++++++++++++++++++++++
 .../gentoo-sources/gentoo-sources-5.16.9.ebuild    | 28 ++++++++++++++++++++++
 .../gentoo-sources/gentoo-sources-5.4.179.ebuild   | 28 ++++++++++++++++++++++
 8 files changed, 217 insertions(+)
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-03-26 01:44:00 UTC
All done!