CVE-2022-29526 golang.org/x/sys/unix has Incorrect privilege reporting in syscall

Medium 5.3 Published Updated

The Go standard library's Faccessat function incorrectly reports file accessibility, potentially allowing privilege escalation or security bypasses.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-29526?

CVE-2022-29526 is a medium-severity vulnerability in Fedoraproject Fedora, published on 22 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Go before 1.17.10 and 1.18.x before 1.18.2 has Incorrect Privilege Assignment. When called with a non-zero flags parameter, the Faccessat function could incorrectly report that a file is accessible.

Weakness: CWE-269

Which versions are affected by CVE-2022-29526?

5 open source packages ship an affected version, including golang.org/x/sys, golang and stdlib. It affects 3 products.

PackageAffectedFixed in
golang.org/x/sys GoAll versions0.0.0-20220412211240-33da011f77ad
golang.org/x/sys GoAll versions0.0.0-20220412211240-33da011f77ad
golang.org/x/sys GoAll versions0.0.0-20220412211240-33da011f77ad
golang BitnamiAll versions1.17.10, 1.18.2
stdlib GoAll versions1.17.10, 1.18.2
Linux distribution packages (10)
go1.17 SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions1.17.10-150000.1.34.1
go1.18 SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions1.18.2-150000.1.17.1
go1.17 SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions1.17.10-150000.1.34.1
go1.18 SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions1.18.2-150000.1.17.1
go1.17 openSUSE:Leap 15.3All versions1.17.10-150000.1.34.1
go1.18 openSUSE:Leap 15.3All versions1.18.2-150000.1.17.1
go1.17 openSUSE:Leap 15.4All versions1.17.10-150000.1.34.1
go1.18 openSUSE:Leap 15.4All versions1.18.2-150000.1.17.1
go1.17 openSUSE:TumbleweedAll versions1.17.10-1.1
go1.18 openSUSE:TumbleweedAll versions1.18.2-1.1

Products include Fedoraproject Fedora, Golang Go, Netapp Beegfs Csi Driver.

How do I fix CVE-2022-29526?

Upgrade golang.org/x/sys to 0.0.0-20220412211240-33da011f77ad or later.

Is CVE-2022-29526 being exploited?

There is no known exploitation of CVE-2022-29526 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-31975, AZL-33622, AZL-33629, AZL-33644, AZL-35007, AZL-35014 and 30 more.

Is CVE-2022-29526 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free