suse-su-2022:0171-1
Vulnerability from csaf_suse
Published
2022-01-25 12:56
Modified
2022-01-25 12:56
Summary
Security update for rust1.55

Notes

Title of the patch
Security update for rust1.55
Description of the patch
This update for rust1.55 fixes the following issues: - CVE-2022-21658: Fixed race condition in std::fs::remove_dir_all (bsc#1194767).
Patchnames
SUSE-2022-171,SUSE-SLE-Module-Development-Tools-15-SP3-2022-171
Terms of use
CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).



{
  "document": {
    "aggregate_severity": {
      "namespace": "https://www.suse.com/support/security/rating/",
      "text": "moderate"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright 2024 SUSE LLC. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "summary",
        "text": "Security update for rust1.55",
        "title": "Title of the patch"
      },
      {
        "category": "description",
        "text": "This update for rust1.55 fixes the following issues:\n\n- CVE-2022-21658: Fixed race condition in std::fs::remove_dir_all (bsc#1194767).\n",
        "title": "Description of the patch"
      },
      {
        "category": "details",
        "text": "SUSE-2022-171,SUSE-SLE-Module-Development-Tools-15-SP3-2022-171",
        "title": "Patchnames"
      },
      {
        "category": "legal_disclaimer",
        "text": "CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).",
        "title": "Terms of use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://www.suse.com/support/security/contact/",
      "name": "SUSE Product Security Team",
      "namespace": "https://www.suse.com/"
    },
    "references": [
      {
        "category": "external",
        "summary": "SUSE ratings",
        "url": "https://www.suse.com/support/security/rating/"
      },
      {
        "category": "self",
        "summary": "URL of this CSAF notice",
        "url": "https://ftp.suse.com/pub/projects/security/csaf/suse-su-2022_0171-1.json"
      },
      {
        "category": "self",
        "summary": "URL for SUSE-SU-2022:0171-1",
        "url": "https://www.suse.com/support/update/announcement/2022/suse-su-20220171-1/"
      },
      {
        "category": "self",
        "summary": "E-Mail link for SUSE-SU-2022:0171-1",
        "url": "https://lists.suse.com/pipermail/sle-security-updates/2022-January/010068.html"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1194767",
        "url": "https://bugzilla.suse.com/1194767"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2022-21658 page",
        "url": "https://www.suse.com/security/cve/CVE-2022-21658/"
      }
    ],
    "title": "Security update for rust1.55",
    "tracking": {
      "current_release_date": "2022-01-25T12:56:23Z",
      "generator": {
        "date": "2022-01-25T12:56:23Z",
        "engine": {
          "name": "cve-database.git:bin/generate-csaf.pl",
          "version": "1"
        }
      },
      "id": "SUSE-SU-2022:0171-1",
      "initial_release_date": "2022-01-25T12:56:23Z",
      "revision_history": [
        {
          "date": "2022-01-25T12:56:23Z",
          "number": "1",
          "summary": "Current version"
        }
      ],
      "status": "final",
      "version": "1"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "cargo1.55-1.55.0-150300.7.6.1.aarch64",
                "product": {
                  "name": "cargo1.55-1.55.0-150300.7.6.1.aarch64",
                  "product_id": "cargo1.55-1.55.0-150300.7.6.1.aarch64"
                }
              },
              {
                "category": "product_version",
                "name": "rust1.55-1.55.0-150300.7.6.1.aarch64",
                "product": {
                  "name": "rust1.55-1.55.0-150300.7.6.1.aarch64",
                  "product_id": "rust1.55-1.55.0-150300.7.6.1.aarch64"
                }
              }
            ],
            "category": "architecture",
            "name": "aarch64"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "cargo1.55-1.55.0-150300.7.6.1.i586",
                "product": {
                  "name": "cargo1.55-1.55.0-150300.7.6.1.i586",
                  "product_id": "cargo1.55-1.55.0-150300.7.6.1.i586"
                }
              },
              {
                "category": "product_version",
                "name": "rust1.55-1.55.0-150300.7.6.1.i586",
                "product": {
                  "name": "rust1.55-1.55.0-150300.7.6.1.i586",
                  "product_id": "rust1.55-1.55.0-150300.7.6.1.i586"
                }
              }
            ],
            "category": "architecture",
            "name": "i586"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "cargo1.55-1.55.0-150300.7.6.1.ppc64le",
                "product": {
                  "name": "cargo1.55-1.55.0-150300.7.6.1.ppc64le",
                  "product_id": "cargo1.55-1.55.0-150300.7.6.1.ppc64le"
                }
              },
              {
                "category": "product_version",
                "name": "rust1.55-1.55.0-150300.7.6.1.ppc64le",
                "product": {
                  "name": "rust1.55-1.55.0-150300.7.6.1.ppc64le",
                  "product_id": "rust1.55-1.55.0-150300.7.6.1.ppc64le"
                }
              }
            ],
            "category": "architecture",
            "name": "ppc64le"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "cargo1.55-1.55.0-150300.7.6.1.s390x",
                "product": {
                  "name": "cargo1.55-1.55.0-150300.7.6.1.s390x",
                  "product_id": "cargo1.55-1.55.0-150300.7.6.1.s390x"
                }
              },
              {
                "category": "product_version",
                "name": "rust1.55-1.55.0-150300.7.6.1.s390x",
                "product": {
                  "name": "rust1.55-1.55.0-150300.7.6.1.s390x",
                  "product_id": "rust1.55-1.55.0-150300.7.6.1.s390x"
                }
              }
            ],
            "category": "architecture",
            "name": "s390x"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "cargo1.55-1.55.0-150300.7.6.1.x86_64",
                "product": {
                  "name": "cargo1.55-1.55.0-150300.7.6.1.x86_64",
                  "product_id": "cargo1.55-1.55.0-150300.7.6.1.x86_64"
                }
              },
              {
                "category": "product_version",
                "name": "rust1.55-1.55.0-150300.7.6.1.x86_64",
                "product": {
                  "name": "rust1.55-1.55.0-150300.7.6.1.x86_64",
                  "product_id": "rust1.55-1.55.0-150300.7.6.1.x86_64"
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "SUSE Linux Enterprise Module for Development Tools 15 SP3",
                "product": {
                  "name": "SUSE Linux Enterprise Module for Development Tools 15 SP3",
                  "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:suse:sle-module-development-tools:15:sp3"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "SUSE Linux Enterprise"
          }
        ],
        "category": "vendor",
        "name": "SUSE"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cargo1.55-1.55.0-150300.7.6.1.aarch64 as component of SUSE Linux Enterprise Module for Development Tools 15 SP3",
          "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.aarch64"
        },
        "product_reference": "cargo1.55-1.55.0-150300.7.6.1.aarch64",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Development Tools 15 SP3"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cargo1.55-1.55.0-150300.7.6.1.ppc64le as component of SUSE Linux Enterprise Module for Development Tools 15 SP3",
          "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.ppc64le"
        },
        "product_reference": "cargo1.55-1.55.0-150300.7.6.1.ppc64le",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Development Tools 15 SP3"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cargo1.55-1.55.0-150300.7.6.1.s390x as component of SUSE Linux Enterprise Module for Development Tools 15 SP3",
          "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.s390x"
        },
        "product_reference": "cargo1.55-1.55.0-150300.7.6.1.s390x",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Development Tools 15 SP3"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cargo1.55-1.55.0-150300.7.6.1.x86_64 as component of SUSE Linux Enterprise Module for Development Tools 15 SP3",
          "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.x86_64"
        },
        "product_reference": "cargo1.55-1.55.0-150300.7.6.1.x86_64",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Development Tools 15 SP3"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust1.55-1.55.0-150300.7.6.1.aarch64 as component of SUSE Linux Enterprise Module for Development Tools 15 SP3",
          "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.aarch64"
        },
        "product_reference": "rust1.55-1.55.0-150300.7.6.1.aarch64",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Development Tools 15 SP3"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust1.55-1.55.0-150300.7.6.1.ppc64le as component of SUSE Linux Enterprise Module for Development Tools 15 SP3",
          "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.ppc64le"
        },
        "product_reference": "rust1.55-1.55.0-150300.7.6.1.ppc64le",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Development Tools 15 SP3"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust1.55-1.55.0-150300.7.6.1.s390x as component of SUSE Linux Enterprise Module for Development Tools 15 SP3",
          "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.s390x"
        },
        "product_reference": "rust1.55-1.55.0-150300.7.6.1.s390x",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Development Tools 15 SP3"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rust1.55-1.55.0-150300.7.6.1.x86_64 as component of SUSE Linux Enterprise Module for Development Tools 15 SP3",
          "product_id": "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.x86_64"
        },
        "product_reference": "rust1.55-1.55.0-150300.7.6.1.x86_64",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Development Tools 15 SP3"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2022-21658",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2022-21658"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency. The Rust Security Response WG was notified that the `std::fs::remove_dir_all` standard library function is vulnerable a race condition enabling symlink following (CWE-363). An attacker could use this security issue to trick a privileged program into deleting files and directories the attacker couldn\u0027t otherwise access or delete. Rust 1.0.0 through Rust 1.58.0 is affected by this vulnerability with 1.58.1 containing a patch. Note that the following build targets don\u0027t have usable APIs to properly mitigate the attack, and are thus still vulnerable even with a patched toolchain: macOS before version 10.10 (Yosemite) and REDOX. We recommend everyone to update to Rust 1.58.1 as soon as possible, especially people developing programs expected to run in privileged contexts (including system daemons and setuid binaries), as those have the highest risk of being affected by this. Note that adding checks in your codebase before calling remove_dir_all will not mitigate the vulnerability, as they would also be vulnerable to race conditions like remove_dir_all itself. The existing mitigation is working as intended outside of race conditions.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.aarch64",
          "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.ppc64le",
          "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.s390x",
          "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.x86_64",
          "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.aarch64",
          "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.ppc64le",
          "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.s390x",
          "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.x86_64"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2022-21658",
          "url": "https://www.suse.com/security/cve/CVE-2022-21658"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1194767 for CVE-2022-21658",
          "url": "https://bugzilla.suse.com/1194767"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.aarch64",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.ppc64le",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.s390x",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.x86_64",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.aarch64",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.ppc64le",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.s390x",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.x86_64"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 6.2,
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
            "version": "3.1"
          },
          "products": [
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.aarch64",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.ppc64le",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.s390x",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:cargo1.55-1.55.0-150300.7.6.1.x86_64",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.aarch64",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.ppc64le",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.s390x",
            "SUSE Linux Enterprise Module for Development Tools 15 SP3:rust1.55-1.55.0-150300.7.6.1.x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2022-01-25T12:56:23Z",
          "details": "moderate"
        }
      ],
      "title": "CVE-2022-21658"
    }
  ]
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…