Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-40245

published high CVSS 3.1 · 7.8

nios2: ensure that memblock.current_limit is set when setting pfn limits

Published
04 Dec 2025, 15:31:34 UTC
Updated
05 Aug 2026, 12:08:49 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < 25f09699edd360b534ccae16bc276c3b52c471f3 · 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < 5c3e38a367822f036227dd52bac82dc4a05157e2 · 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < b1ec9faef7e36269ca3ec890972a78effbaeb975 · 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < 90f5f715550e07cd6a51f80fc3f062d832c8c997 · 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < 8912814f14e298b83df072fecc1f7ed1b63b1b2c · 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < a20b83cf45be2057f3d073506779e52c7fa17f94 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.12 (affected) · 0 to < 5.12 (unaffected · semver) · 5.15.196 through 5.15.* (unaffected · semver) · 6.1.158 through 6.1.* (unaffected · semver) · 6.6.115 through 6.6.* (unaffected · semver) · 6.12.56 through 6.12.* (unaffected · semver) · 6.17.6 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Ubuntu focal linux-aws-5.15 Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-aws-5.15-cloud-tools-5.15.0-1100 Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-aws-5.15-headers-5.15.0-1100 Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-aws-5.15-tools-5.15.0-1100 Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu focal linux-azure-5.15 Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-azure-5.15-cloud-tools-5.15.0-1110 Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-azure-5.15-headers-5.15.0-1110 Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-azure-5.15-tools-5.15.0-1110 Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-buildinfo-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-buildinfo-5.15.0-1052-nvidia-tegra-rt Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-buildinfo-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-buildinfo-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-buildinfo-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-buildinfo-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-buildinfo-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-buildinfo-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-170-generic-64k Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-170-generic-lpae Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-170-lowlatency-64k Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-cloud-tools-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-cloud-tools-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-cloud-tools-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-cloud-tools-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-cloud-tools-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-gcp-5.15 Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-gcp-5.15-headers-5.15.0-1100 Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-gcp-5.15-tools-5.15.0-1100 Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-headers-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-headers-5.15.0-1052-nvidia-tegra-rt Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-headers-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-headers-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-headers-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-headers-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-headers-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-headers-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-headers-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-headers-5.15.0-170-generic-64k Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-headers-5.15.0-170-generic-lpae Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-headers-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-headers-5.15.0-170-lowlatency-64k Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-hwe-5.15 Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-hwe-5.15-cloud-tools-5.15.0-170 Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-hwe-5.15-headers-5.15.0-170 Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-hwe-5.15-tools-5.15.0-170 Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-ibm-5.15 Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-ibm-5.15-headers-5.15.0-1094 Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-ibm-5.15-source-5.15.0 Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-ibm-5.15-tools-5.15.0-1094 Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-image-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-image-5.15.0-170-generic-lpae Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-image-unsigned-5.15.0-1052-nvidia-tegra-rt Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-image-unsigned-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-image-unsigned-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-image-unsigned-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-image-unsigned-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-image-unsigned-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-image-unsigned-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-170-generic-64k Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-170-lowlatency-64k Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-intel-iotg-5.15 Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-5.15.0-1095 Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-common Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-headers-5.15.0-1095 Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-tools-5.15.0-1095 Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-tools-common Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-tools-host Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-lowlatency-hwe-5.15 Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-170 Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-lowlatency-hwe-5.15-headers-5.15.0-170 Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-lowlatency-hwe-5.15-tools-5.15.0-170 Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-modules-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-modules-5.15.0-1052-nvidia-tegra-rt Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-modules-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-modules-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-modules-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-modules-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-modules-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-modules-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-modules-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-modules-5.15.0-170-generic-64k Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-modules-5.15.0-170-generic-lpae Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-modules-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-modules-5.15.0-170-lowlatency-64k Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-modules-extra-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-modules-extra-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-modules-extra-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-modules-extra-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-modules-extra-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-modules-extra-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-modules-extra-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-modules-extra-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-modules-involflt-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-modules-iwlwifi-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-modules-iwlwifi-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-modules-iwlwifi-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: nios2: ensure that memblock.current_limit is set when setting pfn limits On nios2, with CONFIG_FLATMEM set, the kernel relies on memblock_get_current_limit() to determine the limits of mem_map, in particular for max_low_pfn. Unfortunately, memblock.current_limit is only default initialized to MEMBLOCK_ALLOC_ANYWHERE at this point of the bootup, potentially leading to situations where max_low_pfn can erroneously exceed the value of max_pfn and, thus, the valid range of available DRAM. This can in turn cause kernel-level paging failures, e.g.: [ 76.900000] Unable to handle kernel paging request at virtual address 20303000 [ 76.900000] ea = c0080890, ra = c000462c, cause = 14 [ 76.900000] Kernel panic - not syncing: Oops [ 76.900000] ---[ end Kernel panic - not syncing: Oops ]--- This patch fixes this by pre-calculating memblock.current_limit based on the upper limits of the available memory ranges via adjust_lowmem_bounds, a simplified version of the equivalent implementation within the arm architecture.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

35

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The defect is in nios2 `setup_arch()` boot-time memory initialization, and its consequences are realized through local activity — memory allocation and `mmap()`/page-fault paths that call `pfn_valid()`/`pfn_to_page()`. There is no network or remote-peer path to arch/nios2/kernel/setup.c. AC:L - `memblock.current_limit` is never set before `find_limits()`, so `max_low_pfn`/`max_mapnr` are unconditionally inflated to ~4 GB of PFNs on every affected nios2 system — the vulnerable state always exists, with no race and no memory-layout luck required. The attacker only needs to map or touch a physical region above DRAM, which is under their control on these FPGA SoCs where peripheral/on-chip-memory windows sit above RAM. PR:L - No capability check guards any of it — an ordinary unprivileged process reaching `update_mmu_cache_range()`/`flush_dcache_page()` through a fault on a device or PFNMAP mapping, or simply driving allocation into the bogus PFN range, is sufficient. Embedded nios2 deployments routinely expose UIO/framebuffer device nodes to non-root users. UI:N - The attacker performs every step themselves — map the region, touch it, let the fault path run. No action by another user or administrator is needed. S:U - The out-of-bounds accesses stay within the kernel's own memory and security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - `pfn_valid()` wrongly approves PFNs with no memmap entry, so `pfn_to_page()` returns a pointer up to tens of megabytes past the end of `mem_map`, and `folio_flush_mapping()`/`flush_aliases()` read and follow that out-of-bounds kernel data as an `address_space`. This is a wide, PFN-indexed out-of-bounds read, far beyond a strictly bounded few bytes. I:H - `update_mmu_cache_range()` performs `test_and_set_bit(PG_dcache_clean, &folio->flags.f)` on the out-of-bounds `struct page`, an attacker-positioned out-of-bounds atomic write into arbitrary kernel memory, and then walks a garbage `address_space`/i_mmap tree. Per the OOB-write guidance this is High. A:H - The documented, reproduced impact is a fatal kernel paging fault and panic ("Unable to handle kernel paging request ... Kernel panic - not syncing: Oops"), and the corrupted low-memory limits can equally cause the allocator and DMA logic to operate on non-existent DRAM. The condition is triggerable repeatedly at will.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < 25f09699edd360b534ccae16bc276c3b52c471f3 (affected · git)7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < 5c3e38a367822f036227dd52bac82dc4a05157e2 (affected · git)7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < b1ec9faef7e36269ca3ec890972a78effbaeb975 (affected · git)7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < 90f5f715550e07cd6a51f80fc3f062d832c8c997 (affected · git)7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < 8912814f14e298b83df072fecc1f7ed1b63b1b2c (affected · git)7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae to < a20b83cf45be2057f3d073506779e52c7fa17f94 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.12 (affected)0 to < 5.12 (unaffected · semver)5.15.196 through 5.15.* (unaffected · semver)6.1.158 through 6.1.* (unaffected · semver)6.6.115 through 6.6.* (unaffected · semver)6.12.56 through 6.12.* (unaffected · semver)6.17.6 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

nios2: ensure that memblock.current_limit is set when setting pfn limits

Provenance

Schema
5.2
Searchable
yes
Content hash
68b4bb502f5d9125d432d0235dbfc4ddedac6194e8479f35934fb0e7e2e8bad7
Ingested
23 Sep 2026, 08:48:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected