Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 807052 (CVE-2021-29922) - <dev-lang/rust{-bin,}-1.53.0: octal IP address format confusion (CVE-2021-29922)
Summary: <dev-lang/rust{-bin,}-1.53.0: octal IP address format confusion (CVE-2021-29922)
Status: RESOLVED FIXED
Alias: CVE-2021-29922
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B4 [glsa+]
Keywords:
Depends on: 803335
Blocks:
  Show dependency tree
 
Reported: 2021-08-07 22:39 UTC by John Helmert III
Modified: 2022-10-16 15:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-08-07 22:39:00 UTC
CVE-2021-29922 (https://github.com/rust-lang/rust/pull/83652):

library/std/src/net/parser.rs in Rust before 1.53.0 does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses, because of unexpected octal interpretation.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-14 03:21:26 UTC
GLSA request filed
Comment 2 Larry the Git Cow gentoo-dev 2022-10-16 14:46:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=cda5f646cd9bc370223b79be59deee389a0caeef

commit cda5f646cd9bc370223b79be59deee389a0caeef
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2022-10-16 14:43:11 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-10-16 14:45:25 +0000

    [ GLSA 202210-09 ] Rust: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/782367
    Bug: https://bugs.gentoo.org/807052
    Bug: https://bugs.gentoo.org/821157
    Bug: https://bugs.gentoo.org/831638
    Bug: https://bugs.gentoo.org/870166
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 glsa-202210-09.xml | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-16 15:04:48 UTC
GLSA released, all done!