{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-39713",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-39713",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-09-05T17:21:20.459Z",
    "updatedAt": "2026-05-12T12:06:30.232Z",
    "importedAt": "2026-10-24T01:57:34.152Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "media: rainshadow-cec: fix TOCTOU race condition in rain_interrupt()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: rainshadow-cec: fix TOCTOU race condition in rain_interrupt()\n\nIn the interrupt handler rain_interrupt(), the buffer full check on\nrain->buf_len is performed before acquiring rain->buf_lock. This\ncreates a Time-of-Check to Time-of-Use (TOCTOU) race condition, as\nrain->buf_len is concurrently accessed and modified in the work\nhandler rain_irq_work_handler() under the same lock.\n\nMultiple interrupt invocations can race, with each reading buf_len\nbefore it becomes full and then proceeding. This can lead to both\ninterrupts attempting to write to the buffer, incrementing buf_len\nbeyond its capacity (DATA_SIZE) and causing a buffer overflow.\n\nFix this bug by moving the spin_lock() to before the buffer full\ncheck. This ensures that the check and the subsequent buffer modification\nare performed atomically, preventing the race condition. An corresponding\nspin_unlock() is added to the overflow path to correctly release the\nlock.\n\nThis possible bug was found by an experimental static analysis tool\ndeveloped by our team.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0f314f6c2e77beb1a232be21dd6be4e1849ba5ac",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2964dbe631fd21ad7873b1752b895548d3c12496"
            },
            {
              "version": "0f314f6c2e77beb1a232be21dd6be4e1849ba5ac",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6aaef1a75985865d8c6c5b65fb54152060faba48"
            },
            {
              "version": "0f314f6c2e77beb1a232be21dd6be4e1849ba5ac",
              "status": "affected",
              "versionType": "git",
              "lessThan": "fbc81e78d75bf28972bc22b1599559557b1a1b83"
            },
            {
              "version": "0f314f6c2e77beb1a232be21dd6be4e1849ba5ac",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3c3e33b7edca7a2d6a96801f287f9faeb684d655"
            },
            {
              "version": "0f314f6c2e77beb1a232be21dd6be4e1849ba5ac",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1c2769dc80255824542ea5a4ff1a07dcdeb1603f"
            },
            {
              "version": "0f314f6c2e77beb1a232be21dd6be4e1849ba5ac",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ed905fe7cba03cf22ae0b84cf1b73cd1c070423a"
            },
            {
              "version": "0f314f6c2e77beb1a232be21dd6be4e1849ba5ac",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ff9dd3db6cd4c6b54a2ecbc58151bea4ec63bc59"
            },
            {
              "version": "0f314f6c2e77beb1a232be21dd6be4e1849ba5ac",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7af160aea26c7dc9e6734d19306128cce156ec40"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.12",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.12"
            },
            {
              "version": "5.4.297",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.241",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.190",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.149",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.103",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.44",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.16.4",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.16.*"
            },
            {
              "version": "6.17",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}