{"api_version":"1","generated_at":"2026-08-03T21:27:39+00:00","cve":"CVE-2025-40112","urls":{"html":"https://cve.report/CVE-2025-40112","api":"https://cve.report/api/cve/CVE-2025-40112.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40112","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40112"},"summary":{"title":"sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-11-12 11:15:40","updated_at":"2026-07-30 06:24:12"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/7823fc4d8ab5e57f8db7806ff2530c03c166c4bb","name":"https://git.kernel.org/stable/c/7823fc4d8ab5e57f8db7806ff2530c03c166c4bb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0b67c8fc10b13a9090340c5f8a37d308f4e1571c","name":"https://git.kernel.org/stable/c/0b67c8fc10b13a9090340c5f8a37d308f4e1571c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a90ce516a73dbe087f9bf3dbf311301a58d125c6","name":"https://git.kernel.org/stable/c/a90ce516a73dbe087f9bf3dbf311301a58d125c6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8cdeb5e482d3fdce7e825444b6ca3865e24c0228","name":"https://git.kernel.org/stable/c/8cdeb5e482d3fdce7e825444b6ca3865e24c0228","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/37547d8e6eba87507279ee3dfddfd9dc46335454","name":"https://git.kernel.org/stable/c/37547d8e6eba87507279ee3dfddfd9dc46335454","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/088c5098ec6d6b0396edfbf3dad3e81de8469c1c","name":"https://git.kernel.org/stable/c/088c5098ec6d6b0396edfbf3dad3e81de8469c1c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/05440320ea3e249d5f984918f2bf51210c1a7c03","name":"https://git.kernel.org/stable/c/05440320ea3e249d5f984918f2bf51210c1a7c03","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a365ee556e45f780ee322b349a06efdad0c1458f","name":"https://git.kernel.org/stable/c/a365ee556e45f780ee322b349a06efdad0c1458f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40112","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40112","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e 05440320ea3e249d5f984918f2bf51210c1a7c03 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e 7823fc4d8ab5e57f8db7806ff2530c03c166c4bb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e 37547d8e6eba87507279ee3dfddfd9dc46335454 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e a365ee556e45f780ee322b349a06efdad0c1458f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e 8cdeb5e482d3fdce7e825444b6ca3865e24c0228 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e a90ce516a73dbe087f9bf3dbf311301a58d125c6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e 088c5098ec6d6b0396edfbf3dad3e81de8469c1c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e 0b67c8fc10b13a9090340c5f8a37d308f4e1571c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bfc8be6593097cb074d3912ba2f27565cfbb7d6e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a15859f9d8396cce7c55ccdb7e75f70f14cbc349 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.4.34 4.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.8.10 4.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.301 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.246 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.195 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.156 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.112 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.53 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17.3 6.17.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2025","cve_id":"40112","cve":"CVE-2025-40112","epss":"0.001540000","percentile":"0.051340000","score_date":"2026-07-31","updated_at":"2026-08-01 00:10:35"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["arch/sparc/lib/NGmemcpy.S"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"05440320ea3e249d5f984918f2bf51210c1a7c03","status":"affected","version":"7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e","versionType":"git"},{"lessThan":"7823fc4d8ab5e57f8db7806ff2530c03c166c4bb","status":"affected","version":"7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e","versionType":"git"},{"lessThan":"37547d8e6eba87507279ee3dfddfd9dc46335454","status":"affected","version":"7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e","versionType":"git"},{"lessThan":"a365ee556e45f780ee322b349a06efdad0c1458f","status":"affected","version":"7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e","versionType":"git"},{"lessThan":"8cdeb5e482d3fdce7e825444b6ca3865e24c0228","status":"affected","version":"7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e","versionType":"git"},{"lessThan":"a90ce516a73dbe087f9bf3dbf311301a58d125c6","status":"affected","version":"7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e","versionType":"git"},{"lessThan":"088c5098ec6d6b0396edfbf3dad3e81de8469c1c","status":"affected","version":"7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e","versionType":"git"},{"lessThan":"0b67c8fc10b13a9090340c5f8a37d308f4e1571c","status":"affected","version":"7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e","versionType":"git"},{"status":"affected","version":"bfc8be6593097cb074d3912ba2f27565cfbb7d6e","versionType":"git"},{"status":"affected","version":"a15859f9d8396cce7c55ccdb7e75f70f14cbc349","versionType":"git"},{"lessThan":"4.5","status":"affected","version":"4.4.34","versionType":"semver"},{"lessThan":"4.9","status":"affected","version":"4.8.10","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["arch/sparc/lib/NGmemcpy.S"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.9"},{"lessThan":"4.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.301","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.246","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.195","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.156","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.112","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.53","versionType":"semver"},{"lessThanOrEqual":"6.17.*","status":"unaffected","version":"6.17.3","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.18","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.301","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.246","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.195","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.156","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.112","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.53","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.17.3","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.34","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-07-30T06:00:44.411Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/05440320ea3e249d5f984918f2bf51210c1a7c03"},{"url":"https://git.kernel.org/stable/c/7823fc4d8ab5e57f8db7806ff2530c03c166c4bb"},{"url":"https://git.kernel.org/stable/c/37547d8e6eba87507279ee3dfddfd9dc46335454"},{"url":"https://git.kernel.org/stable/c/a365ee556e45f780ee322b349a06efdad0c1458f"},{"url":"https://git.kernel.org/stable/c/8cdeb5e482d3fdce7e825444b6ca3865e24c0228"},{"url":"https://git.kernel.org/stable/c/a90ce516a73dbe087f9bf3dbf311301a58d125c6"},{"url":"https://git.kernel.org/stable/c/088c5098ec6d6b0396edfbf3dad3e81de8469c1c"},{"url":"https://git.kernel.org/stable/c/0b67c8fc10b13a9090340c5f8a37d308f4e1571c"}],"title":"sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-40112","datePublished":"2025-11-12T10:23:16.690Z","dateReserved":"2025-04-16T07:20:57.167Z","dateUpdated":"2026-07-30T06:00:44.411Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-11-12 11:15:40","lastModifiedDate":"2026-07-30 06:24:12","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"40112","Ordinal":"1","Title":"sparc: fix accurate exception reporting in copy_{from_to}_user f","CVE":"CVE-2025-40112","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"40112","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"sparc: fix accurate exception reporting in copy_{from_to}_user f"}]}}}