ADVISORIES

Red Hat VEX

RHVEX-CVE-2022-41715

golang: regexp/syntax: limit memory used by parsing regexps

Moderate No fix available CVE-2022-41715

Details

A flaw was found in the golang package, where programs that compile regular expressions from untrusted sources are vulnerable to memory exhaustion or a denial of service. The parsed regexp representation is linear in the input size. Still, in some cases, the constant factor can be as high as 40,000, making a relatively small regexp consume larger amounts of memory. After the fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Routine use of regular expressions is unaffected.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:8buildah
All versions, will not be fixed
Red Hat:enterprise_linux:8buildah-tests
All versions, will not be fixed
Red Hat:enterprise_linux:8containernetworking-plugins
All versions, no fix yet
Red Hat:enterprise_linux:8containers-common
All versions, no fix yet
Red Hat:enterprise_linux:8oci-seccomp-bpf-hook
All versions, will not be fixed
Red Hat:enterprise_linux:8podman
All versions, no fix yet
Red Hat:enterprise_linux:8podman-catatonit
All versions, no fix yet
Red Hat:enterprise_linux:8podman-docker
All versions, no fix yet
Red Hat:enterprise_linux:8podman-gvproxy
All versions, no fix yet
Red Hat:enterprise_linux:8podman-manpages
All versions, no fix yet
Red Hat:enterprise_linux:8podman-plugins
All versions, no fix yet
Red Hat:enterprise_linux:8podman-remote
All versions, no fix yet
Red Hat:enterprise_linux:8podman-tests
All versions, no fix yet
Red Hat:enterprise_linux:8runc
All versions, no fix yet
Red Hat:enterprise_linux:8skopeo
All versions, no fix yet
Red Hat:enterprise_linux:8skopeo-tests
All versions, no fix yet
Red Hat:enterprise_linux:9buildah
All versions, will not be fixed
Red Hat:enterprise_linux:9buildah-tests
All versions, will not be fixed
Red Hat:enterprise_linux:9butane
All versions, will not be fixed
Red Hat:enterprise_linux:9containernetworking-plugins
All versions, will not be fixed
Red Hat:enterprise_linux:9ignition
All versions, will not be fixed
Red Hat:enterprise_linux:9ignition-edge
All versions, will not be fixed
Red Hat:enterprise_linux:9ignition-grub
All versions, will not be fixed
Red Hat:enterprise_linux:9ignition-validate
All versions, will not be fixed
Red Hat:enterprise_linux:9oci-seccomp-bpf-hook
All versions, will not be fixed
Red Hat:enterprise_linux:9podman
All versions, will not be fixed
Red Hat:enterprise_linux:9podman-catatonit
All versions, will not be fixed
Red Hat:enterprise_linux:9podman-docker
All versions, will not be fixed
Red Hat:enterprise_linux:9podman-gvproxy
All versions, will not be fixed
Red Hat:enterprise_linux:9podman-plugins
All versions, will not be fixed
Red Hat:enterprise_linux:9podman-remote
All versions, will not be fixed
Red Hat:enterprise_linux:9podman-tests
All versions, will not be fixed
Red Hat:enterprise_linux:9runc
All versions, will not be fixed
Red Hat:enterprise_linux:9skopeo
All versions, will not be fixed
Red Hat:enterprise_linux:9skopeo-tests
All versions, will not be fixed

References