{
  "document": {
    "aggregate_severity": {
      "text": "Medium"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "TuxCare License Agreement",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "publisher": {
      "category": "vendor",
      "contact_details": "https://tuxcare.com/contact/",
      "name": "TuxCare",
      "namespace": "https://tuxcare.com/"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.tuxcare.com/csaf/v2/els_os/almalinux9.2esu/vex/2023/cve-2023-40661-els_os-almalinux9_2esu.json"
      }
    ],
    "title": "Security update on CVE-2023-40661",
    "tracking": {
      "current_release_date": "2026-01-19T22:18:50Z",
      "generator": {
        "date": "2026-01-19T22:18:50Z",
        "engine": {
          "name": "pyCSAF"
        }
      },
      "id": "CVE-2023-40661-ELS_OS-ALMALINUX9.2ESU",
      "initial_release_date": "2023-11-06T17:15:00Z",
      "revision_history": [
        {
          "date": "2023-11-06T17:15:00Z",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2025-10-30T08:47:41Z",
          "number": "2",
          "summary": "Official Publication"
        },
        {
          "date": "2025-11-29T10:46:20Z",
          "number": "3",
          "summary": "Update document"
        },
        {
          "date": "2025-12-23T19:08:30Z",
          "number": "4",
          "summary": "Update document"
        },
        {
          "date": "2026-01-19T22:18:50Z",
          "number": "5",
          "summary": "Update document"
        }
      ],
      "status": "final",
      "version": "5"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "AlmaLinux 9.2",
                "product": {
                  "name": "AlmaLinux 9.2",
                  "product_id": "AlmaLinux-9.2",
                  "product_identification_helper": {
                    "cpe": "cpe:2.3:o:almalinux:almalinux:9.2:*:*:*:*:*:*:*"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "AlmaLinux"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "opensc-0:0.22.0-2.el9.i686",
                "product": {
                  "name": "opensc-0:0.22.0-2.el9.i686",
                  "product_id": "opensc-0:0.22.0-2.el9.i686",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/almalinux/opensc@0.22.0-2.el9?arch=i686"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "i686"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "opensc-0:0.22.0-2.el9.x86_64",
                "product": {
                  "name": "opensc-0:0.22.0-2.el9.x86_64",
                  "product_id": "opensc-0:0.22.0-2.el9.x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/almalinux/opensc@0.22.0-2.el9?arch=x86_64"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          }
        ],
        "category": "vendor",
        "name": "AlmaLinux OS Foundation"
      },
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "opensc-0:0.22.0-2.el9.tuxcare.els1.i686",
                "product": {
                  "name": "opensc-0:0.22.0-2.el9.tuxcare.els1.i686",
                  "product_id": "opensc-0:0.22.0-2.el9.tuxcare.els1.i686",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/opensc@0.22.0-2.el9.tuxcare.els1?arch=i686"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "i686"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64",
                "product": {
                  "name": "opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64",
                  "product_id": "opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/opensc@0.22.0-2.el9.tuxcare.els1?arch=x86_64"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          }
        ],
        "category": "vendor",
        "name": "TuxCare"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "opensc-0:0.22.0-2.el9.tuxcare.els1.i686 as a component of AlmaLinux 9.2",
          "product_id": "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.i686"
        },
        "product_reference": "opensc-0:0.22.0-2.el9.tuxcare.els1.i686",
        "relates_to_product_reference": "AlmaLinux-9.2"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "opensc-0:0.22.0-2.el9.i686 as a component of AlmaLinux 9.2",
          "product_id": "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.i686"
        },
        "product_reference": "opensc-0:0.22.0-2.el9.i686",
        "relates_to_product_reference": "AlmaLinux-9.2"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64 as a component of AlmaLinux 9.2",
          "product_id": "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64"
        },
        "product_reference": "opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64",
        "relates_to_product_reference": "AlmaLinux-9.2"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "opensc-0:0.22.0-2.el9.x86_64 as a component of AlmaLinux 9.2",
          "product_id": "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.x86_64"
        },
        "product_reference": "opensc-0:0.22.0-2.el9.x86_64",
        "relates_to_product_reference": "AlmaLinux-9.2"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2023-40661",
      "cwe": {
        "id": "CWE-119",
        "name": "Improper Restriction of Operations within the Bounds of a Memory Buffer"
      },
      "notes": [
        {
          "category": "description",
          "text": "Several memory vulnerabilities were identified within the OpenSC packages, particularly in the card enrollment process using pkcs15-init when a user or administrator enrolls cards. To take advantage of these flaws, an attacker must have physical access to the computer system and employ a custom-crafted USB device or smart card to manipulate responses to APDUs. This manipulation can potentially allow \r\ncompromise key generation, certificate loading, and other card management operations during enrollment.",
          "title": "Vulnerability description"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_affected": [
          "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.i686",
          "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.x86_64",
          "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.i686",
          "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2023-40661"
        },
        {
          "category": "external",
          "summary": "https://access.redhat.com/errata/RHSA-2023:7876",
          "url": "https://access.redhat.com/errata/RHSA-2023:7876"
        },
        {
          "category": "external",
          "summary": "https://access.redhat.com/errata/RHSA-2023:7879",
          "url": "https://access.redhat.com/errata/RHSA-2023:7879"
        },
        {
          "category": "external",
          "summary": "https://access.redhat.com/security/cve/CVE-2023-40661",
          "url": "https://access.redhat.com/security/cve/CVE-2023-40661"
        },
        {
          "category": "external",
          "summary": "https://bugzilla.redhat.com/show_bug.cgi?id=2240913",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2240913"
        },
        {
          "category": "external",
          "summary": "https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651",
          "url": "https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651"
        },
        {
          "category": "external",
          "summary": "https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1",
          "url": "https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1"
        },
        {
          "category": "external",
          "summary": "https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories",
          "url": "https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories"
        },
        {
          "category": "external",
          "summary": "http://www.openwall.com/lists/oss-security/2023/12/13/3",
          "url": "http://www.openwall.com/lists/oss-security/2023/12/13/3"
        },
        {
          "category": "external",
          "summary": "https://lists.debian.org/debian-lts-announce/2023/11/msg00024.html",
          "url": "https://lists.debian.org/debian-lts-announce/2023/11/msg00024.html"
        },
        {
          "category": "external",
          "summary": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CPQOMCDWFRBMEFR5VK4N5MMXXU42ODE/",
          "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CPQOMCDWFRBMEFR5VK4N5MMXXU42ODE/"
        },
        {
          "category": "external",
          "summary": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLYEFIBBA37TK3UNMZN5NOJ7IWCIXLQP/",
          "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLYEFIBBA37TK3UNMZN5NOJ7IWCIXLQP/"
        },
        {
          "category": "external",
          "summary": "https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html",
          "url": "https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html"
        }
      ],
      "release_date": "2023-11-06T17:15:00Z",
      "remediations": [
        {
          "category": "no_fix_planned",
          "details": "Ignored due to low severity",
          "product_ids": [
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.i686",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.x86_64",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.i686",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64"
          ]
        },
        {
          "category": "no_fix_planned",
          "details": "This vulnerability is only reachable during interactive smart‑card enrollment via the pkcs15-init utility and requires on‑site physical insertion of a crafted USB/smart‑card device while a user or administrator is actively performing that operation, providing no remote or daemon-based attack surface. In VM and data‑center server contexts without direct physical access to attached card readers or USB passthrough, there is no practical path to trigger it. Given the physical and user‑interaction prerequisites and the narrow, enrollment‑only exposure window, it can be safely deprioritized relative to network‑exposed issues.",
          "product_ids": [
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.i686",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.x86_64",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.i686",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "PHYSICAL",
            "availabilityImpact": "HIGH",
            "baseScore": 6.4,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.i686",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.x86_64",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.i686",
            "AlmaLinux-9.2:opensc-0:0.22.0-2.el9.tuxcare.els1.x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate"
        }
      ]
    }
  ]
}