By Oliver Sieber Overview In this blog post, we discuss a use-after-free vulnerability that we found in the nftables subsystem of the Linux kernel in early 2025. This vulnerability was patched upstream on 5 February 2026 and assigned CVE-2026-23111. This blog post covers a technical analysis of the vulnerability and how we exploited it to perform a local privilege escalation from an unprivileged user to root on Debian Bookworm, Debian Trixie, Ubuntu 22.04 LTS, and Ubuntu 24.04 LTS.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Qword Ptr
Aliasing - Matt Godbolt’s blog
This example is taken from something similar that actually bit me in my job a few years ago. I was bewildered until I worked out that it was aliasing! ↩ Try making the change in the Compiler Explorer window above. You’ll see the total update move outside of the loop. If you’re not scared to jump ahead a bit, make it -O3 and you’ll see the vectorised code, but only with the __restrict. ↩ Aliasing is particularly bad in C and C++.
shared_ptr: the (not always) atomic reference counted smart pointer
This is a write-up of the “behavioral analysis” of shared_ptr<T> reference count in GNU’s libstdc++. This smart pointer is used to share references to the same underlaying pointer. The mechanism beneath works by tracking the amount of references through a reference count so the pointer gets freed only after the last reference is destructed. It is usually used in multi-threaded programs (in conjunction with other types) because of the guarantees of having its reference count tracked atomically.
memory and ILP handling in 2D convolutions
memory and ILP handling in 2D convolutions a convolution is defined as an integral that expresses the amount of overlap two signals represented by functions of time \(f(t)\) and \(g(t)\) have as one is reflected and shifted on top of the other. It is usually denoted by the convolution operator \(f * g\) : \[ (f * g)(t) = \int_{-\infty}^{\infty} f(t-\tau)g(\tau) d\tau \] where \(f(t)\) is a one-dimensional signal and \(g(t)\) is the response of a filter.
C++ 指向類別成員的指位器的實作細節
C++ 可以定義指向成員函式的指位器, 不過因為成員函式可能是虛擬函式, 如何能夠透過指向成員函式的指位器達到呼叫正確的成員函式呢?本來就來簡單探究。(本文均以 g++ 為例, 並且只探討單純的單一繼承)。 指向非虛擬函式的指位器 首先來看個簡單的範例, 建立指向非虛擬函式的指位器: #include <iostream> using namespace std; class A { public: virtual void f_v1() { cout << "A::f_v1()" << endl; } virtual void f_v2() { cout << "A::f_v2()" << endl; } void f_nv() { cout << "A::f_nv()" << endl;} }; class B : public A { public: void f_v1() { cout << "B::f_v1()" << endl; } }; int main(void) { B b; A a; A *pa = &b; void (A::*pf)() =...
C++ 是怎麼找到虛擬函式?
C++ 的虛擬函式讓程式碼增加許多彈性, 不過你可能會很好奇, 到底 C++ 是怎麼找到指位器所對應類別版本的虛擬函式?這就要從 C++ 如何幫我們建立物件談起。以下我們就以 x86-64 上的 gcc 為測試平台, 從編譯器產生的組合語言碼觀察實作的方式。 🛈 本文會以 x86 組合語言程式碼解說, 有關 x86 組合語言, 可參考這一篇哈佛大學 C61 課程的課堂筆記。 沒有虛擬函式的類別 對於沒有虛擬函式的一般類別, 是最單純的, 像是以下這個簡單的範例: #include <iostream> using namespace std; class A { public: char c; void f() {} }; int main(void) { A a; a.c = 'a'; a.f(); } 以下是編譯後的組合語言程式碼, 經過編譯之後, 會把 A 類別的成員函式變成一般函式, 也就是 A::f() 標籤處, 但是需要傳入物件位址當第一個引數, 這就是成員函式中 this 指位器的由來: A::f(): ; 類別 A 的成員函式 f push rbp ; 儲存...
每个程序员都应该了解的硬件知识-51CTO.COM
2024-04-10 12:36:41 本文旨在通过多个可运行的 benchmark 介绍常见的优化细节以及与之相关的硬件知识,为读者建立一个简单、有效的硬件心智模型。 在追求高效代码的路上,我们不可避免地会遇到代码的性能瓶颈。为了了解、解释一段代码为什么低效,并尝试改进低效的代码,我们总是要了解硬件的工作原理。于是,我们可能会尝试搜索有关某个架构的介绍、一些优化指南或者阅读一些计算机科学的教科书(如:计算机组成原理)。但以上的内容可能都太过繁琐、细节太多,在阅读的过程中,我们可能会迷失在纷繁的细节中,没法很好地将知识运用到实践中。 本文旨在通过多个可运行的 benchmark 介绍常见的优化细节以及与之相关的硬件知识,为读者建立一个简单、有效的硬件心智模型。 首先要介绍的就是缓存 cache 。我们先来看一个引自 CSAPP 的经典例子: pub fn row_major_traversal(arr: &mut Vec<Vec<usize>>) { let n = arr.len(); for i in 0..n { assert!(arr[i].len() == n);...
Two C++ Features Win Over C Equivalents
This short write-up showcases two tricks C++ developers use to gain performance over C. As such, it is not eligible to participate in the CodeProject monthly article competition. Download SummingBenchmark2.zip - 3.4 KB Download SortBenchmark3.zip - 3.7 KB Table of Content Introduction C++ sort VS C qsort C++ accumulate VS C Summing For Loop History Introduction When it comes to performance, C is king, but there are two areas in which C++ is supreme over C: sorting and summing.
Reverse engineering natively-compiled .NET apps
Reverse engineering natively-compiled .NET apps .NET 7 introduced a new deployment model: native ahead of time compilation. When a .NET app is compiled with native AOT, it gets compiled to a standalone native executable with its own minimal runtime to manage code execution. This runtime is quite small and in .NET 8 it’s possible to build standalone C# apps under 1 MB.
这下可以安心使用 dynamic_cast 了:dynamic_cast 的实现方法分析以及性能优化
原文在我的博客上: dynamic_cast 是 C++ 中包含的四种类型转换操作符之一,它利用运行时类型识别(RTTI)特性在运行时检查并转换多态对象的类型。它的主要功能包括: 从基类子对象指针得到最派生对象(most-derived object)指针:dynamic_cast<void*>(expr) 。expr 是一个指向某个最派生对象中的某个基类子对象的指针,dynamic_cast 可用于从 expr 得到其所属的最派生对象的指针。由于并不清楚最派生对象的静态类型,因此这种情况下只能返回一个 void* 类型的指针指向最派生对象。 从基类对象指针或引用得到派生类指针或引用(向下转换,downcast):dynamic_cast<Derived*>(base_expr) 。这应该是使用 dynamic_cast 最常见的场景。此时 base_expr 是一个指向 Base 对象的指针,Derived 是一个派生自 Base 类的类型。dynamic_cast 将检查 base_expr 指向的 Base 对象是否是某个唯一的 Derived...
Fourchain - Sandbox
By default base::Bind{Once, Repeating}() will store copies of all bound parameters, and attempt to refcount a target object if the function being bound is a class method. These copies are created even if the function takes parameters as const references. To change this behavior, we introduce a set of argument wrappers (e.g., base::Unretained()). These are simple container templates that are passed by value, and wrap a pointer to argument. Each helper has a comment describing it in base/bind.h.
What's a vtable? What's an IUnknown?
Understanding vtables (also called VMT/Virtual Method Tables or VFT/Virtual Function Tables) is important for understanding how many C++ features work on any OS. They are even more important to understand on Windows, where vtables are used for communication between modules using COM. There are a few types of errors that can happen when things go wrong with them, and some of these will be extremely difficult to diagnose unless you understand how vtables actually work.
LuaJIT Internals(Pt. 2/3): Fighting the JIT Compiler
Welcome back to the LuaJIT series: After the 1st part is behind us, where we introduced the VM & execution model. Now we’ll get a source-code tour & see the inner workings of the JIT-compiler of LuaJIT. Most of my work here is based on threads from the LuaJIT mailing list and this great talk by Vyacheslav Egorov, which provides an overview of interesting things in LuaJIT on a higher level. In this post, I’ll try to dive a bit deeper by providing source code snippets/references.
Hooking Go from Rust - Hitchhiker’s Guide to the Go-laxy
🪞 mirrord 2.0 is out! Read the blog post about it here. Most mainstream programming languages strive to fit into a few common standards, to increase interoperability and decrease adoption friction. Golang isn’t one of those (there are several articles on the subject). In this blog post we’ll demonstrate how to overcome Go’s isolationist design and integrate with it from another language (in our case Rust). Why do we need to interop with Go?
static operator()
Since [P1169R3], wording. Since [P1169R2], added missing feature-test macro and updated wording to include [LWG3617]. [P1169R1] was approved for electronic polling by EWG, but two issues came up that while this paper does not change are still worth commenting on: can and can whether or not stateless lambdas be static be ? [P1169R0] was presented to EWGI in San Diego, where there was no consensus to pursue the paper.
Double-Free found on Squid 4.14 and 5.0.5
Full Disclosure mailing list archives By Date By Thread Double-Free found on Squid 4.14 and 5.0.5 From: Andrés Roldán via Fulldisclosure <fulldisclosure () seclists org> Date: Wed, 24 Feb 2021 23:17:03 -0500 A Double-Free bug was found in Squid versions 4.14 and 5.0.5 when processing the "acl" directive on configuration files, more specifically the first and second addresses.
Anatomy of a Binary Executable
Anatomy of a Binary Executable Wed, Nov 4, 2020 23-minute read Even though I’ve developed software for a number of years now, there’s one question that has always been in the back of my mind and I haven’t had the time or patience to really answer, until now: What is a binary executable anyways?
ret2dl_resolve x64: Exploiting Dynamic Linking Procedure In x64 ELF Binaries
In this article, we will start analyzing the lazy binding process, we will proceed dissecting dl-runtime, understanding when it is possible to use this technique without a leak, and finally we will build our exploit. The Lazy Binding When a program is executed in Linux, as default behavior, the dynamic linker resolves references to symbols in the shared libraries only when it is needed.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Qword
Contact Qword, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack