<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/linux-7-2-rc7-addresses-a-nasty-race-condition-leading-to-use-after-free-after-8-years-xkxkoetzs" -->

---
title: Linux 7.2-rc7 Addresses A &quot;Nasty&quot; Race Condition Leading...
description: Linux 7.2-rc7 includes a fix for an eight-year-old race condition in the PTDUMP code, introduced with Linux 4.16 in March 2018. The bug involves a race between...
canonical: https://daily.dev/posts/linux-7-2-rc7-addresses-a-nasty-race-condition-leading-to-use-after-free-after-8-years-xkxkoetzs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Linux 7.2-rc7 Addresses A &quot;Nasty&quot; Race Condition Leading To Use-After-Free After 8 Years | daily.dev
og:description: Linux 7.2-rc7 includes a fix for an eight-year-old race condition in the PTDUMP code, introduced with Linux 4.16 in March 2018. The bug involves a race between...
og:url: https://daily.dev/posts/linux-7-2-rc7-addresses-a-nasty-race-condition-leading-to-use-after-free-after-8-years-xkxkoetzs
og:image: https://api.daily.dev/og/posts/xkxkOetZs.png
og:image:alt: Linux 7.2-rc7 Addresses A &quot;Nasty&quot; Race Condition Leading To Use-After-Free After 8 Years
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Linux 7.2-rc7 Addresses A "Nasty" Race Condition Leading To Use-After-Free After 8 Years

**[Phoronix](https://daily.dev/sources/phoronix)** · 2 min read · 0 upvotes · 0 comments

## Summary

Linux 7.2-rc7 includes a fix for an eight-year-old race condition in the PTDUMP code, introduced with Linux 4.16 in March 2018. The bug involves a race between ptdump and vmap when mapping huge P4D, PMD, or PUD entries, which can lead to use-after-free (UAF) behavior. The issue was detected by Syzbot in June, and Lorenzo Stoakes reworked a patch originally by David Carlier — with assistance from Claude Opus 4.8 — to resolve it. The fix is merged and expected to be back-ported to stable kernel versions soon.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.phoronix.com/news/Linux-7.2-rc7-UAF-PTDUMP>

## Questions this post answers

### What is the ptdump use-after-free bug fixed in Linux 7.2-rc7?

A race condition between ptdump and vmap when mapping huge P4D, PMD, or PUD entries can cause use-after-free behavior if the ptdump page table walker accesses a PUD, PMD, or PTE page table after it has been freed. The bug was introduced with memory management changes in Linux 4.16 (March 2018) and was detected by Syzbot. The fix was merged ahead of Linux 7.2-rc7 and is expected to be back-ported to stable kernel versions.

_Kernel developers tracking UAF fixes and stable back-ports follow Linux security patches on daily.dev._

### How was the Linux ptdump UAF race condition discovered and fixed?

Syzbot detected the use-after-free in June. Lorenzo Stoakes reworked a patch originally written by David Carlier, using Claude Opus 4.8 to help hunt down the root cause. The fix addresses the race between ptdump and vmap during huge page table entry mapping and was merged into the Linux 7.2-rc7 release cycle, with stable back-ports expected shortly after.

_Developers working on kernel memory safety can track patch back-ports and related fixes on daily.dev._

## Similar posts on daily.dev

- [Linux 7.2 Protects Against "Stupid Or Malicious" DoS Attempts By Arming Timers In The Past](https://daily.dev/posts/linux-7-2-protects-against-stupid-or-malicious-dos-attempts-by-arming-timers-in-the-past-eoa5qfcjx) · Phoronix · 1 upvotes · 0 comments
- [IonStack part II: GhostLock, a stack-UAF that has existed in ALL Linux distributions for 15 years](https://daily.dev/posts/ionstack-part-ii-ghostlock-a-stack-uaf-that-has-existed-in-all-linux-distributions-for-15-years-wznoxduhk) · Hacker News · 2 upvotes · 0 comments

---

Tags: [#linux](https://daily.dev/tags/linux)

[View this post on daily.dev](https://daily.dev/posts/linux-7-2-rc7-addresses-a-nasty-race-condition-leading-to-use-after-free-after-8-years-xkxkoetzs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Linux 7.2-rc7 Addresses A \"Nasty\" Race Condition Leading To Use-After-Free After 8 Years","url":"https://daily.dev/posts/linux-7-2-rc7-addresses-a-nasty-race-condition-leading-to-use-after-free-after-8-years-xkxkoetzs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/linux-7-2-rc7-addresses-a-nasty-race-condition-leading-to-use-after-free-after-8-years-xkxkoetzs"},"datePublished":"2026-08-07T10:33:23.657Z","dateModified":"2026-08-07T10:33:56.956Z","description":"Linux 7.2-rc7 includes a fix for an eight-year-old race condition in the PTDUMP code, introduced with Linux 4.16 in March 2018. The bug involves a race between...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/092e730ac9128a207dc54268a12d8fc4?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/092e730ac9128a207dc54268a12d8fc4?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Phoronix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Phoronix","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6a26ba379dd64932830aa0c9803dd7ee","url":"https://daily.dev/sources/phoronix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/linux-7-2-rc7-addresses-a-nasty-race-condition-leading-to-use-after-free-after-8-years-xkxkoetzs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Phoronix","item":"https://daily.dev/sources/phoronix"},{"@type":"ListItem","position":3,"name":"Linux 7.2-rc7 Addresses A \"Nasty\" Race Condition Leading To Use-After-Free After 8 Years"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/linux-7-2-rc7-addresses-a-nasty-race-condition-leading-to-use-after-free-after-8-years-xkxkoetzs#faq","mainEntity":[{"@type":"Question","name":"What is the ptdump use-after-free bug fixed in Linux 7.2-rc7?","acceptedAnswer":{"@type":"Answer","text":"A race condition between ptdump and vmap when mapping huge P4D, PMD, or PUD entries can cause use-after-free behavior if the ptdump page table walker accesses a PUD, PMD, or PTE page table after it has been freed. The bug was introduced with memory management changes in Linux 4.16 (March 2018) and was detected by Syzbot. The fix was merged ahead of Linux 7.2-rc7 and is expected to be back-ported to stable kernel versions. Kernel developers tracking UAF fixes and stable back-ports follow Linux security patches on daily.dev."}},{"@type":"Question","name":"How was the Linux ptdump UAF race condition discovered and fixed?","acceptedAnswer":{"@type":"Answer","text":"Syzbot detected the use-after-free in June. Lorenzo Stoakes reworked a patch originally written by David Carlier, using Claude Opus 4.8 to help hunt down the root cause. The fix addresses the race between ptdump and vmap during huge page table entry mapping and was merged into the Linux 7.2-rc7 release cycle, with stable back-ports expected shortly after. Developers working on kernel memory safety can track patch back-ports and related fixes on daily.dev."}}]}
```

