Read the docs
TI-2021-22660 Aliases GHSA-gmq2-39ff-f5qg

A failed upgrade may lead to hung goroutines

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Impact Processes using tableflip may encounter hung goroutines in the parent process, after a failed upgrade. The Go runtime has annoying behaviour around setting and clearing O_NONBLOCK: exec.Cmd.Start() ends up calling os.File.Fd() for any file in exec.Cmd.ExtraFiles. os.File.Fd() disables both the use of the runtime poller for the file and clears O_NONBLOCK from the underlying open file descriptor. This can lead to goroutines hanging in a parent process, after at least one failed upgrade. The bug manifests in goroutines which rely on either a deadline or interruption via Close() to be unblocked being stuck in read or accept like syscalls. As far as I can tell we've not experienced this problem in production, so it's most likely quite rare. ### Patches The problem has been fixed in v1.2.2. ### Workarounds None. ### References * https://github.com/cloudflare/tableflip/commit/cae714b289e199db5da5f08af861ea65be6232c0

Why it matters now

Fix Fixed github.com/cloudflare/tableflip (Go): 1.2.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—github.com/cloudflare/tableflip (Go)before 1.2.21.2.2Patch availableGHSA-gmq2-39ff-f5qg
  • github.com/cloudflare/tableflip (Go) Vendor— Affected before 1.2.2 Fixed in 1.2.2 Patch available GHSA-gmq2-39ff-f5qg

Remediation

  • Fix · GHSA-gmq2-39ff-f5qg github.com/cloudflare/tableflip (Go) Fixed in 1.2.2 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-gmq2-39ff-f5qg

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences