{
  "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-40112",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-40112",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-11-12T10:23:16.690Z",
    "updatedAt": "2026-08-05T12:07:52.886Z",
    "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": "sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nsparc: fix accurate exception reporting in copy_{from_to}_user for Niagara\n\nThe referenced commit introduced exception handlers on user-space memory\nreferences in copy_from_user and copy_to_user. These handlers return from\nthe respective function and calculate the remaining bytes left to copy\nusing the current register contents. This commit fixes a couple of bad\ncalculations and a broken epilogue in the exception handlers. This will\nprevent crashes and ensure correct return values of copy_from_user and\ncopy_to_user in the faulting case. The behaviour of memcpy stays unchanged.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "05440320ea3e249d5f984918f2bf51210c1a7c03"
            },
            {
              "version": "7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7823fc4d8ab5e57f8db7806ff2530c03c166c4bb"
            },
            {
              "version": "7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "37547d8e6eba87507279ee3dfddfd9dc46335454"
            },
            {
              "version": "7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a365ee556e45f780ee322b349a06efdad0c1458f"
            },
            {
              "version": "7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8cdeb5e482d3fdce7e825444b6ca3865e24c0228"
            },
            {
              "version": "7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a90ce516a73dbe087f9bf3dbf311301a58d125c6"
            },
            {
              "version": "7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "088c5098ec6d6b0396edfbf3dad3e81de8469c1c"
            },
            {
              "version": "7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0b67c8fc10b13a9090340c5f8a37d308f4e1571c"
            },
            {
              "version": "bfc8be6593097cb074d3912ba2f27565cfbb7d6e",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "a15859f9d8396cce7c55ccdb7e75f70f14cbc349",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "4.4.34",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "4.5"
            },
            {
              "version": "4.8.10",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "4.9"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.9",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.9"
            },
            {
              "version": "5.4.301",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.246",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.195",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.156",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.112",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.53",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.17.3",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.17.*"
            },
            {
              "version": "6.18",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}