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-2024-40918

published high CVSS 3.1 · 7.8

parisc: Try to fix random segmentation faults in package builds

Published
12 Jul 2024, 12:25:00 UTC
Updated
05 Aug 2026, 11:33:59 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux2de8b4cc2051ee1d40eedbcf94de0e7d04507c37 to < 5bf196f1936bf93df31112fbdfb78c03537c07b0 · 2de8b4cc2051ee1d40eedbcf94de0e7d04507c37 to < d66f2607d89f760cdffed88b22f309c895a2af20 · 2de8b4cc2051ee1d40eedbcf94de0e7d04507c37 to < 72d95924ee35c8cd16ef52f912483ee938a34d49 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.6.35 through 6.6.* (unaffected · semver) · 6.9.6 through 6.9.* (unaffected · semver) · 6.10 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 jammy linux-buildinfo-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-buildinfo-6.8.0-1013-nvidia-64k Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-buildinfo-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-buildinfo-6.8.0-44-lowlatency-64k Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu jammy linux-buildinfo-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-buildinfo-6.8.0-45-generic-64k Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-cloud-tools-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-cloud-tools-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-headers-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-headers-6.8.0-1013-nvidia-64k Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-headers-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-headers-6.8.0-44-lowlatency-64k Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-headers-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-headers-6.8.0-45-generic-64k Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-hwe-6.8 Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-hwe-6.8-cloud-tools-6.8.0-45 Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-hwe-6.8-headers-6.8.0-45 Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-hwe-6.8-tools-6.8.0-45 Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-image-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-image-unsigned-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-image-unsigned-6.8.0-1013-nvidia-64k Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-image-unsigned-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-image-unsigned-6.8.0-44-lowlatency-64k Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-image-unsigned-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-image-unsigned-6.8.0-45-generic-64k Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-lowlatency-hwe-6.8 Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-44 Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-lowlatency-hwe-6.8-headers-6.8.0-44 Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-lowlatency-hwe-6.8-lib-rust-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-lowlatency-hwe-6.8-tools-6.8.0-44 Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-modules-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-modules-6.8.0-1013-nvidia-64k Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-modules-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-modules-6.8.0-44-lowlatency-64k Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-modules-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-modules-6.8.0-45-generic-64k Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-modules-extra-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-modules-extra-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-modules-ipu6-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-modules-iwlwifi-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-modules-iwlwifi-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-modules-nvidia-fs-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-modules-nvidia-fs-6.8.0-1013-nvidia-64k Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-modules-usbio-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-nvidia-6.8 Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-nvidia-6.8-headers-6.8.0-1013 Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-nvidia-6.8-tools-6.8.0-1013 Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-tools-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-tools-6.8.0-1013-nvidia-64k Advisory build 6.8.0-1013.14~22.04.1 USN-7005-2
Ubuntu jammy linux-tools-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-tools-6.8.0-44-lowlatency-64k Advisory build 6.8.0-44.44.1~22.04.1 USN-7008-1
Ubuntu jammy linux-tools-6.8.0-45-generic Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu jammy linux-tools-6.8.0-45-generic-64k Advisory build 6.8.0-45.45~22.04.1 USN-7029-1
Ubuntu noble linux Advisory build 6.8.0-44.44 USN-6999-1
Ubuntu noble linux-aws Advisory build 6.8.0-1015.16 USN-6999-1
Ubuntu noble linux-aws-cloud-tools-6.8.0-1015 Advisory build 6.8.0-1015.16 USN-6999-1
Ubuntu noble linux-aws-headers-6.8.0-1015 Advisory build 6.8.0-1015.16 USN-6999-1
Ubuntu noble linux-aws-tools-6.8.0-1015 Advisory build 6.8.0-1015.16 USN-6999-1
Ubuntu noble linux-azure Advisory build 6.8.0-1014.16 USN-7004-1
Ubuntu noble linux-azure-cloud-tools-6.8.0-1014 Advisory build 6.8.0-1014.16 USN-7004-1
Ubuntu noble linux-azure-headers-6.8.0-1014 Advisory build 6.8.0-1014.16 USN-7004-1
Ubuntu noble linux-azure-tools-6.8.0-1014 Advisory build 6.8.0-1014.16 USN-7004-1
Ubuntu noble linux-buildinfo-6.8.0-1010-gke Advisory build 6.8.0-1010.13 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-1011-raspi Advisory build 6.8.0-1011.12 USN-6999-2
Ubuntu noble linux-buildinfo-6.8.0-1012-ibm Advisory build 6.8.0-1012.12 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-1012-oem Advisory build 6.8.0-1012.12 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-1012-oracle Advisory build 6.8.0-1012.12 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-1012-oracle-64k Advisory build 6.8.0-1012.12 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14 USN-7005-1
Ubuntu noble linux-buildinfo-6.8.0-1013-nvidia-64k Advisory build 6.8.0-1013.14 USN-7005-1
Ubuntu noble linux-buildinfo-6.8.0-1013-nvidia-lowlatency Advisory build 6.8.0-1013.14.1 USN-7005-1
Ubuntu noble linux-buildinfo-6.8.0-1013-nvidia-lowlatency-64k Advisory build 6.8.0-1013.14.1 USN-7005-1
Ubuntu noble linux-buildinfo-6.8.0-1014-azure Advisory build 6.8.0-1014.16 USN-7004-1
Ubuntu noble linux-buildinfo-6.8.0-1014-gcp Advisory build 6.8.0-1014.16 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-1015-aws Advisory build 6.8.0-1015.16 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-44-generic Advisory build 6.8.0-44.44 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-44-generic-64k Advisory build 6.8.0-44.44 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1 USN-6999-1
Ubuntu noble linux-buildinfo-6.8.0-44-lowlatency-64k Advisory build 6.8.0-44.44.1 USN-6999-1
Ubuntu noble linux-cloud-tools-6.8.0-1014-azure Advisory build 6.8.0-1014.16 USN-7004-1
Ubuntu noble linux-cloud-tools-6.8.0-1015-aws Advisory build 6.8.0-1015.16 USN-6999-1
Ubuntu noble linux-cloud-tools-6.8.0-44 Advisory build 6.8.0-44.44 USN-6999-1
Ubuntu noble linux-cloud-tools-6.8.0-44-generic Advisory build 6.8.0-44.44 USN-6999-1
Ubuntu noble linux-cloud-tools-6.8.0-44-lowlatency Advisory build 6.8.0-44.44.1 USN-6999-1
Ubuntu noble linux-cloud-tools-common Advisory build 6.8.0-44.44 USN-6999-1
Ubuntu noble linux-gcp Advisory build 6.8.0-1014.16 USN-6999-1
Ubuntu noble linux-gcp-headers-6.8.0-1014 Advisory build 6.8.0-1014.16 USN-6999-1
Ubuntu noble linux-gcp-tools-6.8.0-1014 Advisory build 6.8.0-1014.16 USN-6999-1
Ubuntu noble linux-gke Advisory build 6.8.0-1010.13 USN-6999-1
Ubuntu noble linux-gke-headers-6.8.0-1010 Advisory build 6.8.0-1010.13 USN-6999-1
Ubuntu noble linux-gke-tools-6.8.0-1010 Advisory build 6.8.0-1010.13 USN-6999-1
Ubuntu noble linux-headers-6.8.0-1010-gke Advisory build 6.8.0-1010.13 USN-6999-1
Ubuntu noble linux-headers-6.8.0-1011-raspi Advisory build 6.8.0-1011.12 USN-6999-2
Ubuntu noble linux-headers-6.8.0-1012-ibm Advisory build 6.8.0-1012.12 USN-6999-1
Ubuntu noble linux-headers-6.8.0-1012-oem Advisory build 6.8.0-1012.12 USN-6999-1
Ubuntu noble linux-headers-6.8.0-1012-oracle Advisory build 6.8.0-1012.12 USN-6999-1
Ubuntu noble linux-headers-6.8.0-1012-oracle-64k Advisory build 6.8.0-1012.12 USN-6999-1
Ubuntu noble linux-headers-6.8.0-1013-nvidia Advisory build 6.8.0-1013.14 USN-7005-1
Ubuntu noble linux-headers-6.8.0-1013-nvidia-64k Advisory build 6.8.0-1013.14 USN-7005-1
Ubuntu noble linux-headers-6.8.0-1013-nvidia-lowlatency Advisory build 6.8.0-1013.14.1 USN-7005-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: parisc: Try to fix random segmentation faults in package builds PA-RISC systems with PA8800 and PA8900 processors have had problems with random segmentation faults for many years. Systems with earlier processors are much more stable. Systems with PA8800 and PA8900 processors have a large L2 cache which needs per page flushing for decent performance when a large range is flushed. The combined cache in these systems is also more sensitive to non-equivalent aliases than the caches in earlier systems. The majority of random segmentation faults that I have looked at appear to be memory corruption in memory allocated using mmap and malloc. My first attempt at fixing the random faults didn't work. On reviewing the cache code, I realized that there were two issues which the existing code didn't handle correctly. Both relate to cache move-in. Another issue is that the present bit in PTEs is racy. 1) PA-RISC caches have a mind of their own and they can speculatively load data and instructions for a page as long as there is a entry in the TLB for the page which allows move-in. TLBs are local to each CPU. Thus, the TLB entry for a page must be purged before flushing the page. This is particularly important on SMP systems. In some of the flush routines, the flush routine would be called and then the TLB entry would be purged. This was because the flush routine needed the TLB entry to do the flush. 2) My initial approach to trying the fix the random faults was to try and use flush_cache_page_if_present for all flush operations. This actually made things worse and led to a couple of hardware lockups. It finally dawned on me that some lines weren't being flushed because the pte check code was racy. This resulted in random inequivalent mappings to physical pages. The __flush_cache_page tmpalias flush sets up its own TLB entry and it doesn't need the existing TLB entry. As long as we can find the pte pointer for the vm page, we can get the pfn and physical address of the page. We can also purge the TLB entry for the page before doing the flush. Further, __flush_cache_page uses a special TLB entry that inhibits cache move-in. When switching page mappings, we need to ensure that lines are removed from the cache. It is not sufficient to just flush the lines to memory as they may come back. This made it clear that we needed to implement all the required flush operations using tmpalias routines. This includes flushes for user and kernel pages. After modifying the code to use tmpalias flushes, it became clear that the random segmentation faults were not fully resolved. The frequency of faults was worse on systems with a 64 MB L2 (PA8900) and systems with more CPUs (rp4440). The warning that I added to flush_cache_page_if_present to detect pages that couldn't be flushed triggered frequently on some systems. Helge and I looked at the pages that couldn't be flushed and found that the PTE was either cleared or for a swap page. Ignoring pages that were swapped out seemed okay but pages with cleared PTEs seemed problematic. I looked at routines related to pte_clear and noticed ptep_clear_flush. The default implementation just flushes the TLB entry. However, it was obvious that on parisc we need to flush the cache page as well. If we don't flush the cache page, stale lines will be left in the cache and cause random corruption. Once a PTE is cleared, there is no way to find the physical address associated with the PTE and flush the associated page at a later time. I implemented an updated change with a parisc specific version of ptep_clear_flush. It fixed the random data corruption on Helge's rp4440 and rp3440, as well as on my c8000. At this point, I realized that I could restore the code where we only flush in flush_cache_page_if_present if the page has been accessed. However, for this, we also need to flush the cache when the accessed bit is cleared in ---truncated---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

7

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 faulty cache-flush primitives are driven by memory-management operations (COW faults, munmap, mremap, reclaim, ptrace) that require local execution on the affected parisc system. There is no remote protocol path that reaches the arch cache code directly. AC:L - An unprivileged local process reliably triggers stale-cache-line corruption simply by running a heavy mmap/fork/COW workload — the commit reports ordinary package builds hitting it routinely — and a multi-threaded attacker controls both sides of the racy PTE check plus physical page-frame reuse via standard page-spray grooming. PR:L - Only an ordinary unprivileged local account is needed; the vulnerable paths (wp_page_copy, try_to_unmap, mremap, userfaultfd, ptrace) are reachable with no capability whatsoever. UI:N - The attacker's own memory workload triggers the missed flushes; no action by any other user or victim process is required. S:U - The corruption occurs within the kernel's own memory management on the same host, which is the standard unchanged-scope case for kernel memory-corruption issues. C:H - Stale cache lines survive across page-frame reuse, so data belonging to a previously-mapped page — another process's memory, page cache contents, or kernel data — can be read through the new owner's alias, giving cross-boundary disclosure of arbitrary physical memory contents. I:H - Unflushed dirty lines for a freed page are written back over whatever now occupies that frame, silently corrupting other processes' memory, the page cache, slab objects, and kernel structures including page tables — an arbitrary-write primitive suitable for privilege escalation. A:H - The documented effect is random segmentation faults and memory corruption; when the corrupted frame holds kernel data the result is an oops or panic, and the commit describes cache incoherency severe enough to produce hardware lockups.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 2de8b4cc2051ee1d40eedbcf94de0e7d04507c37 to < 5bf196f1936bf93df31112fbdfb78c03537c07b0 (affected · git)2de8b4cc2051ee1d40eedbcf94de0e7d04507c37 to < d66f2607d89f760cdffed88b22f309c895a2af20 (affected · git)2de8b4cc2051ee1d40eedbcf94de0e7d04507c37 to < 72d95924ee35c8cd16ef52f912483ee938a34d49 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.18 (affected)0 to < 5.18 (unaffected · semver)6.6.35 through 6.6.* (unaffected · semver)6.9.6 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

3

Linux · cna

parisc: Try to fix random segmentation faults in package builds

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
0b444a290b1757199cde0559a88bd926ba37e2bc48c124df22ea5f1a2c5e7531
Ingested
23 Sep 2026, 08:26:02 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