# Memory safety verification

A software-engineering practice that uses tools to detect memory-safety bugs in native code.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## KernelArmor: End-to-End Agentic System for Establishing Memory and Thread Safety for CUDA

DevFeed: [KernelArmor: End-to-End Agentic System for Establishing Memory and Thread Safety for CUDA](<https://devfeed.tech/articles/kernelarmor-end-to-end-agentic-system-for-establishing-memory-and-thread-safety-for-cuda-137970.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.18754>)

Author: Bodhisatwa Chatterjee, Mohamed Tarek Ibn Zaid, Sana Damani, Siva Kumar Sastry Hari, Christos Kozyrakis

Published: 2026-11-17T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [Agentic AI](<https://devfeed.tech/topics/what-is-agentic-ai.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrency-bugs](<https://devfeed.tech/tags/concurrency-bugs.md>), [contracts](<https://devfeed.tech/tags/contracts.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [cs-os](<https://devfeed.tech/tags/cs-os.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [llm](<https://devfeed.tech/tags/llm.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [safety](<https://devfeed.tech/tags/safety.md>), [smt](<https://devfeed.tech/tags/smt.md>), [tensor-cores](<https://devfeed.tech/tags/tensor-cores.md>), [thread](<https://devfeed.tech/tags/thread.md>), [thread-safety](<https://devfeed.tech/tags/thread-safety.md>), [verification](<https://devfeed.tech/tags/verification.md>), [warp](<https://devfeed.tech/tags/warp.md>)

### AI overview

KernelArmor combines LLM-generated annotations with an extended SMT verifier to check CUDA memory and thread safety against explicit contracts. It supports advanced features including tensor cores, packed accesses, warp synchronization, asynchronous copies and library calls, and provides source-level diagnostics for verification and repair. Across 740 instances with 1,370 kernels, it reported potential bugs in 78.6% and established safety for 11.4%; it also identified all cuCatch memory-safety bugs and all in-scope cuHadron races. In 77 optimization trajectories, it produced verified kernels while retaining 99% of the unconstrained geometric-mean speedup.

### Source excerpt

arXiv:2611.18754v1 Announce Type: cross Abstract: Optimized CUDA kernels can pass testing while retaining subtle memory and concurrency bugs. We present KernelArmor, an agentic framework that combines LLM-generated annotations with an extended SMT verifier to establish memory and thread safety under explicit contracts. KernelArmor can reason about kernels with advanced CUDA features, such as tensor cores, packed accesses, warp synchronization, asynchronous copies, and library calls, returning source-level diagnostics to guide verification and repair. Across 740 instances containing 1,370 production-grade CUDA kernels, it reports potential bugs in 78.6% of instances and establishes safety for 11.4%, outperforming the evaluated state-of-the-art tools in detection coverage, identifying 100% of cuCatch memory-safety bugs and all in-scope cuHadron races. Integrated into an agentic optimization loop, KernelArmor produces verified kernels in all 77 trajectories while retaining 99% of the unconstrained geometric-mean speedup.

## Look Here, Then Decide: Small Decision Models in a Harness Find Memory-Safety Vulnerabilities at Scale on Commodity GPUs

DevFeed: [Look Here, Then Decide: Small Decision Models in a Harness Find Memory-Safety Vulnerabilities at Scale on Commodity GPUs](<https://devfeed.tech/articles/look-here-then-decide-small-decision-models-in-a-harness-find-memory-safety-vulnerabilities-at-scale-on-commodity-gpus-131734.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.16565>)

Author: Tim De Wachter, Kyryl Volkov, Myrto Eleftheria Gkogkou, Mathieu Huysman

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [AI Foundation Models](<https://devfeed.tech/topics/ai-foundation-models.md>), [Static code analysis](<https://devfeed.tech/topics/static-code-analysis.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [coordinated-disclosure](<https://devfeed.tech/tags/coordinated-disclosure.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [cves](<https://devfeed.tech/tags/cves.md>), [cvss](<https://devfeed.tech/tags/cvss.md>), [decision-models](<https://devfeed.tech/tags/decision-models.md>), [gb10](<https://devfeed.tech/tags/gb10.md>), [gpus](<https://devfeed.tech/tags/gpus.md>), [harness](<https://devfeed.tech/tags/harness.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [open-source-software](<https://devfeed.tech/tags/open-source-software.md>), [patch](<https://devfeed.tech/tags/patch.md>), [prioritization](<https://devfeed.tech/tags/prioritization.md>), [recall](<https://devfeed.tech/tags/recall.md>), [rtx-4090](<https://devfeed.tech/tags/rtx-4090.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

The harness uses deterministic incomplete-fix miners and shape localizers to select candidate C/C++ functions, then Intern-Decision-4B scores them to prioritize review; it does not decide whether candidates are vulnerable. On 75 external public CVEs, the fixed function ranked in its repository's top 25 in 21% of cases, 1.4x the rate from random ordering. Model ordering put 7.5x more confirmed campaign findings in the top 10 than random, but this is a selection-biased upper bound, and recall depends mainly on localizer coverage. The campaign reports 187 confirmed memory-safety findings across more than 4,000 projects searched on three GB10 systems. The model alone distinguishes vulnerable functions from their patched versions weakly (AUC 0.56), so deterministic analysis and verification remain essential. The decision step ran at 4.4 decisions per second on a GB10 and 9.8 on an RTX 4090 with matching scores.

### Source excerpt

arXiv:2611.16565v1 Announce Type: cross Abstract: We ask whether small, open-weight decision models can support vulnerability discovery in open-source software at scale and what the surrounding system must provide. These models answer a typed question in one forward pass, returning scores for the permitted answers rather than text. Our harness selects widely packaged C and C++ projects and uses deterministic incomplete-fix miners and shape localizers to decide where to look. Intern-Decision-4B, a 4B-parameter open-weight decision model, then scores every candidate function. The scores rank the queues rather than accept or reject candidates, apart from a low reach-score floor that some queues kept. The search uses no frontier model. Alone, the model is weak: it separates vulnerable from benign functions with AUC 0.73, but a vulnerable function from its own patch with only 0.56. It is more useful for ordering candidates. On 75 public CVEs from projects without any of our findings, the fixed function reached its repository's top 25 in 21% of cases, 1.4 times as often as under random order of the same queues. Recall is bounded mainly by where the localizers look. On the campaign's own queues the model's order placed 7.5 times more confirmed findings in the top 10 than random order, an observed, selection-biased upper bound. On three GB10 systems, the harness searched more than 4,000 projects at 900-1,100 repositories per hour. The campaign confirmed 187 memory-safety findings; by worst-case CVSS v3.1, 12 are critical, 148 high, 23 medium and 4 low. The decision step runs at 4.4 decisions per second on one GB10 and 9.8 on a consumer RTX 4090 gaming PC, with matching scores. A small decision model supports vulnerability discovery through prioritization, while deterministic analysis and verification remain essential. All confirmed findings are being disclosed to maintainers under coordinated disclosure before publication.

## FORGE Lab uses agentic tools to identify memory safety issues in Rust

DevFeed: [FORGE Lab uses agentic tools to identify memory safety issues in Rust](<https://devfeed.tech/articles/forge-lab-uses-agentic-tools-to-identify-memory-safety-issues-in-rust-124340.md>)

Original publisher: [Read original article](<https://www.microsoft.com/en-us/security/blog/2026/11/09/forge-lab-uses-agentic-tools-to-identify-memory-safety-issues-in-rust/>)

Author: Yechan Bae and FORGE Lab

Published: 2026-11-09T20:17:31Z

Content type: article

Language: en

Sources: [Microsoft Security](<https://devfeed.tech/sources/microsoft-security-blog.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [software security audit](<https://devfeed.tech/topics/software-security-audit.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [Static code analysis](<https://devfeed.tech/topics/static-code-analysis.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>), [ai code review](<https://devfeed.tech/topics/ai-code-review.md>)

Tags: [2015](<https://devfeed.tech/tags/2015.md>), [2020](<https://devfeed.tech/tags/2020.md>), [2021](<https://devfeed.tech/tags/2021.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-security](<https://devfeed.tech/tags/agentic-security.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-assisted](<https://devfeed.tech/tags/ai-assisted.md>), [ai-powered](<https://devfeed.tech/tags/ai-powered.md>), [analyzer](<https://devfeed.tech/tags/analyzer.md>), [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [forge](<https://devfeed.tech/tags/forge.md>), [frontier-ai-models](<https://devfeed.tech/tags/frontier-ai-models.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [research](<https://devfeed.tech/tags/research.md>), [rust](<https://devfeed.tech/tags/rust.md>), [security](<https://devfeed.tech/tags/security.md>), [tools](<https://devfeed.tech/tags/tools.md>), [undefined-behavior](<https://devfeed.tech/tags/undefined-behavior.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

### AI overview

Microsoft FORGE Lab used Hyenas, its research version of codename MDASH, to help investigate and validate Rust standard-library soundness bugs. The researchers group the failures into three patterns: unsafe code may unwind while an invariant is broken; it may rely on caller-provided safe implementations behaving correctly; or it may assume operating-system and process-wide state remains unchanged. Examples include a panic during `MapWindows::clone` exposing uninitialized values to a destructor, a custom `Pattern` producing invalid UTF-8 through `str::replace`, and process cleanup unmapping the main thread's signal stack. The article also describes environment races in `CommandExt::exec`. Rust maintainers fixed or reviewed several reported issues; at publication, two team-reported issues remained open. The authors stress that a soundness bug is not automatically an exploitable vulnerability: triggering the reported cases may require unusual conditions, and they found no reliable exploitation path for the signal-stack issue under the conditions examined. They argue that AI-assisted analysis can help search system boundaries that traditional static analysis has difficulty modeling.

### Source excerpt

Microsoft FORGE Lab researchers found memory-safety bugs in Rust's core and std libraries, including cases where safe Rust code can trigger undefined behavior. Using Hyenas, FORGE's frontier research version of codename MDASH, the team investigated three patterns of misplaced trust in unsafe code and what they reveal about Rust's safety guarantees. The post FORGE Lab uses agentic tools to identify memory safety issues in Rust appeared first on Microsoft Security Blog.

## Discord Is Ditching Electron For Rust

DevFeed: [Discord Is Ditching Electron For Rust](<https://devfeed.tech/articles/discord-is-ditching-electron-for-rust-119443.md>)

Original publisher: [Read original article](<https://tech.slashdot.org/story/26/11/05/193239/discord-is-ditching-electron-for-rust>)

Author: BeauHD

Published: 2026-11-05T19:05:00Z

Content type: news

Language: en

Sources: [Slashdot](<https://devfeed.tech/sources/slashdot.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [Discord](<https://devfeed.tech/topics/discord.md>), [Electron](<https://devfeed.tech/topics/electron.md>), [React Native](<https://devfeed.tech/topics/react-native.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [discord](<https://devfeed.tech/tags/discord.md>), [electron](<https://devfeed.tech/tags/electron.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [native](<https://devfeed.tech/tags/native.md>), [performance](<https://devfeed.tech/tags/performance.md>), [ram](<https://devfeed.tech/tags/ram.md>), [react-native](<https://devfeed.tech/tags/react-native.md>), [reduce](<https://devfeed.tech/tags/reduce.md>), [rust](<https://devfeed.tech/tags/rust.md>), [servers](<https://devfeed.tech/tags/servers.md>), [social](<https://devfeed.tech/tags/social.md>), [switch](<https://devfeed.tech/tags/switch.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui](<https://devfeed.tech/tags/ui.md>), [users](<https://devfeed.tech/tags/users.md>), [voice](<https://devfeed.tech/tags/voice.md>)

### AI overview

Discord plans to replace Electron and React Native in its desktop client with Rust, while mobile keeps a native UI and shares app code with desktop through Rust. The company says the change should reduce resource use and improve performance and memory safety. An image shared by Discord's CTO showed a Windows client using 290 MB of RAM; the excerpt contrasts this with current usage that can reach 1 GB or more, though it gives no controlled comparison details. The full switch's timing is unclear; Discord hopes to begin user testing soon.

### Source excerpt

Discord is replacing Electron with a desktop client built fully in Rust, which the company says should significantly reduce the app's notoriously high resource usage while improving performance and memory safety. "We've been early adopters of Rust since 2018 and a lot of our infra, voice tech, and even some of the current client is already Rust, the holy grail was getting the whole client there," explains Discord chief technology officer Stanislav Vishnevskiy in a post on X. "That means Electron goes away, and so does React Native, mobile keeps native UI but shares app code with desktop via Rust." The Verge reports: Vishnevskiy also shared an image of the Discord Windows client using just 290MB of RAM, which is a clear improvement as you only have to participate in a few servers and RAM usage can easily hit 1GB or more using the current Windows app. It's not clear when Discord will make the full switch over to Rust, but Vishnevskiy says the company "hope to get it into testing with users soon." Read more of this story at Slashdot.

## KVGuard: A KV Cache Safety Checker for LLM Serving Systems

DevFeed: [KVGuard: A KV Cache Safety Checker for LLM Serving Systems](<https://devfeed.tech/articles/kvguard-a-kv-cache-safety-checker-for-llm-serving-systems-118702.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.06138>)

Author: Jonguk Cheong, Myungbin Hwang, Eulgyu Kim, Byoungyoung Lee

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>)

Tags: [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [llm-serving](<https://devfeed.tech/tags/llm-serving.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>)

### AI overview

KVGuard detects KV cache memory safety violations in LLM serving by tracking per-request permissions and per-entry initialization in a compact shadow block for each physical block. Five checks cover CPU allocation and block-table construction and translation, plus GPU block-table lookup and KV entry access; each reports violations at the boundary where they arise. The vLLM and SGLang prototype covered 29 historical bugs and found 8 previously unknown violations with no false positives. On Qwen 2.5 14B, reported geomean TPOT overhead was 3.0% on vLLM and 7.4% on SGLang, with memory overhead at most 0.11% of the KV cache--two orders of magnitude below NVIDIA Compute Sanitizer on the same workloads. The abstract says conventional sanitizers miss these block- and request-level errors and their redzone and quarantine designs do not suit serving's limited GPU memory.

### Source excerpt

arXiv:2611.06138v1 Announce Type: new Abstract: Modern LLM serving systems manage the KV cache through PagedAttention, a custom GPU allocator that partitions a single CUDA-allocated region into fixed-size physical blocks and maps each request to those blocks through a CPU-built block table. This block-based design exposes a previously unstudied class of memory safety bugs in the KV cache, including double-free, use-after-free, out-of-bounds access, uninitialized read, and permission violation, which silently corrupt outputs or break request isolation without ever crashing the system. Existing memory sanitizers cannot detect them, because they reason about CUDA-level addresses rather than KV cache blocks, requests, and block tables, and their redzone- and quarantine-based designs do not fit the scarce GPU memory budget of LLM serving. This paper presents KVGuard, the first systematic memory-safety abstraction for KV cache management in LLM serving systems. KVGuard maintains a compact shadow block for each physical KV block, recording per-request permission and per-entry initialization, and uses this metadata to perform five safety checks across the PagedAttention workflow, spanning CPU allocation, block table construction and translation, and GPU-side block table lookup and KV entry access. Each check fires at the boundary that introduced the violation, enabling early detection during development rather than reporting downstream output corruption many requests later. A prototype of KVGuard on vLLM and SGLang covers all 29 historical real-world KV cache safety bugs collected from the two systems' patch histories. KVGuard further found 8 previously unknown safety violations while reporting no false positives. It adds 3.0% and 7.4% geomean TPOT overhead on Qwen 2.5 14B on vLLM and SGLang and at most 0.11% of the KV cache in memory overhead, two orders of magnitude below NVIDIA Compute Sanitizer on the same workloads.

## DualGuard: Comprehensive and Efficient Memory Safety across Sequential and Speculative Execution

DevFeed: [DualGuard: Comprehensive and Efficient Memory Safety across Sequential and Speculative Execution](<https://devfeed.tech/articles/dualguard-comprehensive-and-efficient-memory-safety-across-sequential-and-speculative-execution-109070.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.39374>)

Author: Sixuan Dang, Quan Zhou, Kaiming Huang, Jianan Zhu, Anitha Gollamudi, Trent Jaeger, Danfeng Zhang

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>)

Tags: [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [framework](<https://devfeed.tech/tags/framework.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [performance](<https://devfeed.tech/tags/performance.md>), [runtime-enforcement](<https://devfeed.tech/tags/runtime-enforcement.md>), [security](<https://devfeed.tech/tags/security.md>), [static-analysis](<https://devfeed.tech/tags/static-analysis.md>)

### AI overview

DualGuard aims to enforce memory safety during both speculative and non-speculative execution, addressing a gap between conventional defenses, which transient operations can subvert, and speculative defenses such as Speculative Load Hardening, which do not cover ordinary execution. It classifies memory behaviors into four categories and derives minimal requirements for combining mitigations, implemented with static analysis and runtime enforcement in LLVM. The abstract reports 3%-72% lower overhead than naive combinations of fragmented defenses; in some cases, overhead is also lower than approaches covering only one execution mode.

### Source excerpt

arXiv:2610.39374v1 Announce Type: new Abstract: Although decades of research have yielded sophisticated mechanisms for enforcing memory safety, speculative execution can subvert these protections through transient memory operations. Conversely, defenses designed specifically for speculative safety, such as Speculative Load Hardening (SLH), cannot enforce memory safety during non-speculative execution. A naive combination of defenses from both domains raises two fundamental challenges: (1) which combination of otherwise fragmented defenses can ensure dual memory safety under speculative and non-speculative executions? (2) whether such combinations introduce redundant protections that incur unnecessary performance overhead? We present DualGuard, a unified framework for dual memory protection under non-speculative and speculative executions. DualGuard systematically analyzes memory behaviors, classifying them into four categories, and further identifies the minimal composition requirements for dual memory safety, which allow us to strategically combine existing mitigations and design new ones to avoid redundant or excessive protections. We implement DualGuard through a combination of static analysis and runtime enforcement within the LLVM infrastructure. Our evaluation demonstrates that DualGuard reduces overhead by 3%-72% compared to naive compositions of fragmented defenses. In some cases, it even incurs lower overhead than approaches that guarantee memory safety solely under either non-speculative or speculative execution.

## Code Smell 322 - Don't Keep Request-owned Pointers in Long-lived Variables

DevFeed: [Code Smell 322 - Don't Keep Request-owned Pointers in Long-lived Variables](<https://devfeed.tech/articles/code-smell-322-don-t-keep-request-owned-pointers-in-long-lived-variables-102012.md>)

Original publisher: [Read original article](<https://hackernoon.com/code-smell-322-dont-keep-request-owned-pointers-in-long-lived-variables?source=rss>)

Author: Maxi Contieri

Published: 2026-10-27T05:24:27Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [code security](<https://devfeed.tech/topics/code-security.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [cve-2026-109619](<https://devfeed.tech/tags/cve-2026-109619.md>), [dangling-pointers](<https://devfeed.tech/tags/dangling-pointers.md>), [php](<https://devfeed.tech/tags/php.md>), [php-code-smells](<https://devfeed.tech/tags/php-code-smells.md>), [php-memory-management](<https://devfeed.tech/tags/php-memory-management.md>), [programming](<https://devfeed.tech/tags/programming.md>), [security](<https://devfeed.tech/tags/security.md>), [technology](<https://devfeed.tech/tags/technology.md>)

### AI overview

A long-lived worker can retain a process-wide pointer to request-owned memory after that memory is freed; a later request may read the stale pointer before initialization, creating a use-after-free that can lead to remote code execution under the right conditions. The article recommends request-scoped state or centralized ownership, cleanup on every exit path before freeing request memory, initialization before early consumers, and blocking late writes. It emphasizes that reset symmetry alone is insufficient and suggests testing consecutive requests through the same worker, including forced failures, with AddressSanitizer or Valgrind. The PHP fix excerpt shows resets and early initialization, but is explicitly incomplete; the full patch also changes out-of-memory bailout handling. The article reports demonstrated exploitation for Apache mod_php and conditional exposure for PHP-FPM, and lists PHP upgrade versions.

### Source excerpt

Don't keep request-owned pointers in long-lived variables, or the next request reads freed memory.

## Memory safety for Postgres extensions in C/C++

DevFeed: [Memory safety for Postgres extensions in C/C++](<https://devfeed.tech/articles/memory-safety-for-postgres-extensions-in-c-c-62426.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/memory-safety-postgres-extensions-c-cpp>)

Author: Philip Dubé

Published: 2026-09-30T13:56:27Z

Content type: article

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [c/c++](<https://devfeed.tech/topics/c-c-plus-plus.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [postgres](<https://devfeed.tech/tags/postgres.md>)

### AI overview

The article describes memory safety challenges in combining C++ with PostgreSQL's C extension environment, where allocation and error-handling models can conflict. It outlines ClickHouse's approaches, including replacing C++ with a C library for pg_clickhouse.

### Source excerpt

How ClickHouse's Postgres extensions handle the memory safety challenges of combining C and C++, from clean language boundaries to isolated helper processes.

## A "proof" of Fermat's Last Theorem that fits the margin

DevFeed: [A "proof" of Fermat's Last Theorem that fits the margin](<https://devfeed.tech/articles/a-proof-of-fermat-s-last-theorem-that-fits-the-margin-7665.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/09/09/a-proof-of-fermats-last-theorem-that-fits-the-margin/>)

Author: "Marc Ilunga"

Published: 2026-09-09T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Lean](<https://devfeed.tech/topics/lean.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [exploits](<https://devfeed.tech/tags/exploits.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [vulnerability-disclosure](<https://devfeed.tech/tags/vulnerability-disclosure.md>)

### AI overview

A Lean string-slicing bug caused its logical evaluator and compiled native code to disagree, allowing a contradiction that could make an invalid proof appear checked. The issue was fixed after disclosure.

### Source excerpt

Fermat famously claimed to have a "truly marvelous proof" of his Last Theorem, but he never wrote it down, insisting the margin of his page was too narrow to contain it. A few centuries later, Anthropic announced a complete formalization of Fermat's Last Theorem using 13 million lines of Lean code (clearly not what Fermat intended). Luckily, we found a wonderfully cursed Lean bug, shown below, that suggests the proof may have fit the margin after all. The issue affects all stable versions of Lean up to 4.33.1, and the patch is incorporated in v4.34.0-rc1. A "checked" proof of Fermat's Last Theorem using Lean 4.33.1 The blue checkmarks in the screenshot above would suggest that Lean considers this proof correct. This seems odd given the amount of work Sir Andrew Wiles put into this problem and the vast size of Claude's proof. So what is going on? The "proof" clearly doesn't make any sense and exploits an issue in Lean. We found the issue while using GPT-5.6 to experiment with a new skill for code review. We want to clarify up front that the issue is not a kernel soundness issue, but it happens to nicely fit any discussion of strings, lengths, and substrings. The issue affects String.Pos.Raw.extract, Lean's low-level string-slicing function. When asked to extract a one-byte slice at an astronomically large position, Lean's logical definition returns the empty string. But the compiled native code returns the entire original string. That disagreement is enough to manufacture a contradiction. Lean's ordinary evaluator "proves" that the tiny slice was empty, while native evaluation "proves" that the very same slice contained "a truly marvelous proof." Put those together, and Lean concludes that the empty string equals a non-empty string. And once you have a contradiction, you can prove anything, including Fermat's Last Theorem. On the bright side, the Lean team was considerably faster than mathematical history. About 90 minutes after we reported the issue, hargoniX opened

## Static Allocation, Constant Work

DevFeed: [Static Allocation, Constant Work](<https://devfeed.tech/articles/static-allocation-constant-work-45147.md>)

Original publisher: [Read original article](<https://matklad.github.io/2026/09/02/static-allocation-constant-work.html>)

Author: Alex Kladov

Published: 2026-09-02T00:00:00Z

Content type: article

Language: en

Sources: [Matklad](<https://devfeed.tech/sources/matklad.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [C](<https://devfeed.tech/topics/c.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [error](<https://devfeed.tech/tags/error.md>), [hardening](<https://devfeed.tech/tags/hardening.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>)

### AI overview

The article discusses memory-safety risks from use-after-free and type confusion, then considers typed allocators, type-segregated object pools, enum-related edge cases, and static allocation as hardening techniques. The supplied excerpt is incomplete.

### Source excerpt

In reply to this email:

## Cloud-native Security for your Windows environment: Announcing the Wiz Runtime Sensor for Windows

DevFeed: [Cloud-native Security for your Windows environment: Announcing the Wiz Runtime Sensor for Windows](<https://devfeed.tech/articles/cloud-native-security-for-your-windows-environment-announcing-the-wiz-runtime-sensor-for-windows-54133.md>)

Original publisher: [Read original article](<https://www.wiz.io/blog/wiz-runtime-sensor-for-your-windows-environment>)

Author: Itay Gershon

Published: 2026-06-22T13:21:47Z

Content type: release

Language: en

Sources: [Wiz](<https://devfeed.tech/sources/wiz-blog-rss-feed.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [threat detection](<https://devfeed.tech/topics/threat-detection.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [cloud-infrastructure](<https://devfeed.tech/topics/cloud-infrastructure.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Rust](<https://devfeed.tech/topics/rust.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [azure](<https://devfeed.tech/tags/azure.md>), [cloud-native-security](<https://devfeed.tech/tags/cloud-native-security.md>), [linux](<https://devfeed.tech/tags/linux.md>), [memory-safe](<https://devfeed.tech/tags/memory-safe.md>), [product](<https://devfeed.tech/tags/product.md>), [product-company-news](<https://devfeed.tech/tags/product-company-news.md>), [real-time-threat-detection](<https://devfeed.tech/tags/real-time-threat-detection.md>), [security](<https://devfeed.tech/tags/security.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

Wiz announces general availability of its Runtime Sensor for Windows, extending real-time threat monitoring and response to Windows workloads across virtual machines, Kubernetes clusters, and hybrid or multicloud environments. The sensor uses a minimal kernel module, Rust-based memory-safe components, and user-space rule processing to reduce system impact.

### Source excerpt

Secure your Windows fleet without sacrificing performance. Wiz pairs real-time threat detection with a memory-safe architecture that scales efficiently to protect your essential cloud infrastructure.

## Swift at Apple: Migrating the TrueType Hinting Interpreter

DevFeed: [Swift at Apple: Migrating the TrueType Hinting Interpreter](<https://devfeed.tech/articles/swift-at-apple-migrating-the-truetype-hinting-interpreter-2932.md>)

Original publisher: [Read original article](<https://swift.org/blog/migrating-truetype-hinting-to-swift/>)

Author: Scott Perry

Published: 2026-06-12T10:00:00Z

Content type: article

Language: en

Sources: [Swift.org](<https://devfeed.tech/sources/swift-org.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Font](<https://devfeed.tech/topics/font.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Security](<https://devfeed.tech/topics/security.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [Web](<https://devfeed.tech/topics/web.md>), [pdf](<https://devfeed.tech/topics/pdf.md>)

Tags: [apple](<https://devfeed.tech/tags/apple.md>), [applications](<https://devfeed.tech/tags/applications.md>), [code](<https://devfeed.tech/tags/code.md>), [fonts](<https://devfeed.tech/tags/fonts.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [performance](<https://devfeed.tech/tags/performance.md>), [security](<https://devfeed.tech/tags/security.md>), [swift](<https://devfeed.tech/tags/swift.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Apple describes rewriting its TrueType hinting interpreter from C to memory-safe Swift for Fall 2025 releases. The rewrite addresses the security risks of processing untrusted fonts and reportedly improves performance by 13% on average.

### Source excerpt

TrueType is a widely used vector font standard for rendering text in web pages, PDFs, operating systems, and applications. Familiar fonts like Helvetica, Garamond, and Monaco are all built on TrueType outlines. The format specifies a hinting interpreter intended to help outlines rasterize faithfully on low-resolution displays. Modern high-resolution displays enable beautiful typography from outlines alone, but TrueType fonts that need hinting to render legibly remain in use and we continue to support them. Font parsers process data from untrusted sources, making the TrueType hinting interpreter a security-critical attack surface. To make the format more resilient on Apple platforms, we rewrote its hinting interpreter from C to memory-safe Swift for the Fall 2025 releases. In addition to memory safety, we also improved performance: on average, our Swift interpreter runs 13% faster than the C interpreter it replaced. To accompany this post, we've also published the source code of the Swift TrueType hinting interpreter. We hope sharing our experience helps others doing similar work in Swift. TrueType and the hinting engine Apple developed TrueType in the late 1980s and released it with the launch of System 7 in 1991. TrueType was a major breakthrough for the time: it gave font developers enormous control over how glyphs are displayed, with an advanced grid-fitting algorithm and a sophisticated hinting engine built around a special-purpose bytecode interpreter. TrueType did all this on computers that were vastly less powerful than today's, so it had to be extremely well-tuned for performance. Then the internet revolutionized how fonts were used. TrueType became embeddable in PDF files in 1994 and in web pages in 2008, and it remains as relevant as ever. However, these new use cases brought additional risk: TrueType could now be exposed to untrusted fonts from anywhere on the internet. TrueType fonts may contain programs the hinting engine runs through a bytecode interpr

## Zed Weekly: #29

DevFeed: [Zed Weekly: #29](<https://devfeed.tech/articles/zed-weekly-29-13598.md>)

Original publisher: [Read original article](<https://zed.dev/blog/zed-weekly-29>)

Author: Joseph Lyons

Published: 2023-12-15T00:00:00Z

Content type: article

Language: en

Sources: [Zed Industries](<https://devfeed.tech/sources/zed-industries-blog.md>)

Topics: [Framework](<https://devfeed.tech/topics/framework.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [developer-productivity](<https://devfeed.tech/topics/developer-productivity.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>)

Tags: [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [framework](<https://devfeed.tech/tags/framework.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [performance](<https://devfeed.tech/tags/performance.md>), [progress-report](<https://devfeed.tech/tags/progress-report.md>), [updates](<https://devfeed.tech/tags/updates.md>)

### AI overview

Zed Weekly #29 reports on performance work for GPUI 2, including benchmarking tab-switching responsiveness and implementing a thread-local bump-allocated arena to reduce rendering allocation costs. It also mentions theme importer updates and a visual progress report for Zed2.

### Source excerpt

Performance improvements to GPUI 2, updates on the theme importer, and a visual progress report of Zed2

## LLVM Weekly - #30, Jul 28th 2014

DevFeed: [LLVM Weekly - #30, Jul 28th 2014](<https://devfeed.tech/articles/llvm-weekly-30-jul-28th-2014-42928.md>)

Original publisher: [Read original article](<https://blog.llvm.org/2014/07/llvm-weekly-30-jul-28th-2014.html>)

Author: Alex Bradbury

Published: 2014-07-28T12:55:00Z

Content type: news

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [LLVM](<https://devfeed.tech/topics/llvm.md>), [clang](<https://devfeed.tech/topics/clang.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>), [releases](<https://devfeed.tech/topics/releases.md>), [JIT](<https://devfeed.tech/topics/jit.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [ast-matchers](<https://devfeed.tech/topics/ast-matchers.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [clang](<https://devfeed.tech/tags/clang.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [jit](<https://devfeed.tech/tags/jit.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [llvmweekly](<https://devfeed.tech/tags/llvmweekly.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [release](<https://devfeed.tech/tags/release.md>), [test](<https://devfeed.tech/tags/test.md>), [weekly](<https://devfeed.tech/tags/weekly.md>)

### AI overview

LLVM Weekly issue 30 covers research and project developments around LLVM and Clang, including ALIVe optimization proofs, an LLVM/Clang 3.5 release candidate, symbolic execution for termination and memory-safety analysis, a proposed Clang rename-refactoring tool, and migration from the old JIT infrastructure to MCJIT.

### Source excerpt

Welcome to the thirtieth issue of LLVM Weekly, a weekly newsletter (published every Monday) covering developments in LLVM, Clang, and related projects. LLVM Weekly is brought to you by Alex Bradbury. Subscribe to future issues at http://llvmweekly.org and pass it on to anyone else you think may be interested. Please send any tips or feedback to asb@asbradbury.org, or @llvmweekly or @asbradbury on Twitter. The canonical home for this issue can be found here at llvmweekly.org. News and articles from around the web Nuno Lopes, David Menendez, Santosh Nagarakatte, and John Regehr have written about ALIVe. This is a very promising tool that aims to aid the specification and proof of peephole optimisations (such as those currently found in LLVM's InstCombine). It uses an SMT solver in order to prove optimisations correct (and if incorrect, provides a counter-example). Source and binaries for the first LLVM/Clang 3.5 Release Candidate are now available. If you like your LLVM releases to be on-time and regression-free, do your part and test them on your codebases. Thomas Ströder and colleagues have recently published a paper "Proving Termination and Memory Safety for Programs with Pointer Arithmetic" which creates symbolic execution graphs from LLVM IR in order to perform its analysis. The preprint is available here. The next Cambridge (UK) LLVM Social will be on the 30th July, at 7.30 pm. On the mailing lists Amin Shali from Google has posted an RFC on adding a rename refactoring tool to Clang. The proposed feature addition would consist of a command-line tool to semantically rename a symbol and an API that could be used by IDEs/editors to do the same. Lang Hames reminds LLVM users to switch to MCJIT. The old JIT infrastucture will be removed after 3.5, so now is the time to look at porting to MCJIT if you haven't already. Rekha R posed a question about the semantics of add nsw which elicited some useful responses that might help clarify things if you too have found it unc

## LLVM Weekly - #3, Jan 20th 2014

DevFeed: [LLVM Weekly - #3, Jan 20th 2014](<https://devfeed.tech/articles/llvm-weekly-3-jan-20th-2014-42897.md>)

Original publisher: [Read original article](<https://blog.llvm.org/2014/01/llvm-weekly-3-jan-20th-2014.html>)

Author: Alex Bradbury

Published: 2014-01-20T07:42:00Z

Content type: news

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [LLVM](<https://devfeed.tech/topics/llvm.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [clang](<https://devfeed.tech/topics/clang.md>), [JIT](<https://devfeed.tech/topics/jit.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [x86](<https://devfeed.tech/topics/x86.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>)

Tags: [clang](<https://devfeed.tech/tags/clang.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [jit](<https://devfeed.tech/tags/jit.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [llvmweekly](<https://devfeed.tech/tags/llvmweekly.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [version](<https://devfeed.tech/tags/version.md>)

### AI overview

The third LLVM Weekly issue summarizes discussion about LLVM versus libjit, a Capstone release built with LLVM, the Planet Clang news feed, a paper on hardware-accelerated compiler-based pointer checking, 16-bit x86 support in the Linux kernel, LLVM release stability, and benchmark optimization.

### Source excerpt

Welcome to the third issue of LLVM Weekly, a weekly newsletter (published every Monday) covering developments in LLVM, Clang, and related projects. LLVM Weekly is brought to you by Alex Bradbury. Subscribe to future issues at http://llvmweekly.org and pass it on to anyone else you think may be interested. Please send any tips or feedback to asb@asbradbury.org, or @llvmweekly or @asbradbury on Twitter. The canonical home for this issue can be found here at llvmweekly.org. News and articles from around the web Eli Bendersky has penned some thoughts on LLVM vs. libjit. Eli describes libjit as being more limited, yet easier to understand and to get going with due to its focus. He also makes interesting claims such as "to be honest, I don't think it's possible to create a really fast JIT within the framework of LLVM, because of its modularity. The faster the JIT, the more you'll have to deviate from the framework of LLVM". As well as the comments directly on the blog post, there is some good discussion over at Reddit . Version 2.0-RC1 Capstone disassembly framework has been released. Capstone is built using code from LLVM. The new release features reduced memory usage, faster Python bindings, and support for PowerPC among other changes. Planet Clang has been announced. It is a news feed following blog posts from Clang and LLVM committers and contributors. The blog roll is fairly short right now, but you're welcome to submit your RSS feed via the email address in the announcement post. The PDF of an upcoming paper to be presented at CGO next month has been released. WatchdogLite: Hardware-Accelerated Compiler-Based Pointer Checking proposes instruction set extensions to accelerate pointer checking functions and achieves a performance overhead of 29% in return for memory safety. The compiler extends (and is compared to) SoftBound + CETS. On the mailing lists David Woodhouse has posted a detailed update on the status of 16-bit x86 in LLVM. David has successfully built the 1