Red Hat VEX
RHVEX-CVE-2022-41715
golang: regexp/syntax: limit memory used by parsing regexps
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | buildah | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | buildah-tests | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | containernetworking-plugins | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | containers-common | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | oci-seccomp-bpf-hook | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | podman | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-catatonit | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-docker | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-gvproxy | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-manpages | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-plugins | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-remote | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-tests | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | runc | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | skopeo | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | skopeo-tests | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | buildah | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | buildah-tests | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | butane | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | containernetworking-plugins | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-edge | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-grub | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-validate | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | oci-seccomp-bpf-hook | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-catatonit | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-docker | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-gvproxy | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-plugins | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-remote | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-tests | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | runc | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | skopeo | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | skopeo-tests | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2022-41715
- https://bugzilla.redhat.com/show_bug.cgi?id=2132872
- https://www.cve.org/CVERecord?id=CVE-2022-41715
- https://nvd.nist.gov/vuln/detail/CVE-2022-41715
- https://github.com/golang/go/issues/55949
- https://groups.google.com/g/golang-announce/c/xtuG5faxtaU?pli=1