GHSA-34vw-m4rh-r36p: Github.com/talos systems/talos Talos Vulnerable Dependency Due To Vulnerability

HIGH
CVSS 7.0
CWE-362 CWE-787
Published
Advisory Summary

GHSA-34vw-m4rh-r36p is a HIGH (CVSS 7.0) talos vulnerable dependency due to vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Github.com/talos systems/talos libraries in the Go ecosystem. The issue involves talos vulnerable dependency due to race condition in linux kernel's ip framework xfrm. Remediation is available by upgrading affected packages to version 1.2.0.

GHSA-34vw-m4rh-r36p at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-34vw-m4rh-r36p
Severity HIGH
CVSS v3.1 Base Score 7.0
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Github.com/talos systems/talos
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-34vw-m4rh-r36p

To remediate this vulnerability, upgrade all affected Github.com/talos systems/talos dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/talos-systems/talos fixed: 1.2.0
Upgrade github.com/talos-systems/talos to 1.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/talos-systems/talos

How to Check if You Are Affected

To determine whether your application is affected by GHSA-34vw-m4rh-r36p, inspect your project dependencies for Github.com/talos systems/talos:

inspect dependencies for github.com/talos-systems/talos

Analyze the terminal output to locate any version of Github.com/talos systems/talos in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Github.com/talos systems/talos, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A race condition was found in the Linux kernel's IP framework for transforming packets (XFRM subsystem) when multiple calls to xfrm_probe_algs occurred simultaneously. This flaw could allow a local attacker to potentially trigger an out-of-bounds write or leak kernel heap memory by performing an out-of-bounds read and copying it into a socket. ### Patches The fix has been backported to [5.15.64](https://www.linuxkernelcves.com/cves/CVE-2022-3028) version of the upstream Linux kernel (5.15 is the upstream Kernel long term version Talos ships with). Talos >= v1.2.0 is shipped with Linux Kernel 5.15.64 fixing the above issue. Kubernetes workloads running in Talos are not affected since user namespaces are disabled in Talos kernel config. So an unprivileged user cannot obtain CAP_NET_ADMIN by unsharing. However untrusted workloads that run with privileged: true or having NET_ADMIN capability poses a risk. ### Workarounds Audit kubernetes workloads running in the cluster with privileged: true set or having NET_ADMIN capability and assess the threat vector. ### References - https://nvd.nist.gov/vuln/detail/CVE-2022-3028 - https://access.redhat.com/security/cve/CVE-2022-3028 ### For more information - Email us at [security@siderolabs.com](mailto:security@siderolabs.com)

GHSA-34vw-m4rh-r36p Affected Github.com/talos systems/talos Versions

1 component(s)
Fixed Versions:
1.2.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/talos-systems/talos
Go
< 1.2.0
1.2.0

References

Frequently Asked Questions

What is GHSA-34vw-m4rh-r36p?
GHSA-34vw-m4rh-r36p is a security vulnerability in Github.com/talos systems/talos involving Talos vulnerable dependency due to race condition in Linux kernel's IP framework XFRM under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Github.com/talos systems/talos versions are affected?
Affected versions include releases prior to 1.2.0 across affected packages: github.com/talos-systems/talos.
What version fixes GHSA-34vw-m4rh-r36p?
Upgrading to 1.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/talos-systems/talos affected?
Yes, github.com/talos-systems/talos is affected in releases prior to 1.2.0. Upgrade your dependency to 1.2.0 or later.
What is the CVSS score of GHSA-34vw-m4rh-r36p?
GHSA-34vw-m4rh-r36p has a CVSS v3.1 base score of 7.0 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-34vw-m4rh-r36p?
GHSA-34vw-m4rh-r36p is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check Go dependencies for GHSA-34vw-m4rh-r36p?
Run the dependency tree command: 'inspect dependencies for github.com/talos-systems/talos'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-34vw-m4rh-r36p",
  "modified" : "2022-09-16T17:17:37Z",
  "published" : "2022-09-16T17:17:37Z",
  "aliases" : [ ],
  "summary" : "Talos vulnerable dependency due to race condition in Linux kernel's IP framework XFRM",
  "details" : "### Impact\nA race condition was found in the Linux kernel's IP framework for transforming packets (XFRM subsystem) when multiple calls to xfrm_probe_algs occurred simultaneously. This flaw could allow a local attacker to potentially trigger an out-of-bounds write or leak kernel heap memory by performing an out-of-bounds read and copying it into a socket.\n\n### Patches\nThe fix has been backported to [5.15.64](https://www.linuxkernelcves.com/cves/CVE-2022-3028) version of the upstream Linux kernel (5.15 is the upstream Kernel long term version Talos ships with). Talos >= v1.2.0 is shipped with Linux Kernel 5.15.64 fixing the above issue.\n\nKubernetes workloads running in Talos are not affected since user namespaces are disabled in Talos kernel config. So an unprivileged user cannot obtain CAP_NET_ADMIN by unsharing. However untrusted workloads that run with privileged: true or having NET_ADMIN capability poses a risk.\n\n### Workarounds\nAudit kubernetes workloads running in the cluster with privileged: true set or having NET_ADMIN capability and assess the threat vector.\n\n### References\n- https://nvd.nist.gov/vuln/detail/CVE-2022-3028\n- https://access.redhat.com/security/cve/CVE-2022-3028\n\n### For more information\n- Email us at [security@siderolabs.com](mailto:security@siderolabs.com)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/talos-systems/talos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/siderolabs/talos/security/advisories/GHSA-34vw-m4rh-r36p"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/siderolabs/talos"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362", "CWE-787" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-16T17:17:37Z",
    "nvd_published_at" : null
  }
}