CVE-2026-3038 in Freebsd
The rtsock_msg_buffer() function serializes routing information into a buffer. As a part of this, it copies sockaddr structures into a sockaddr_storage structure on the stack. It assumes that the source sockaddr length field had already been validated, but this is not necessarily the case, and it's possible for a ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Freebsd | Freebsd | 13.5 14.3 14.4 15.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
The rtsock_msg_buffer() function serializes routing information into a buffer. As a part of this, it copies sockaddr structures into a sockaddr_storage structure on the stack. It assumes that the source sockaddr length field had already been validated, but this is not necessarily the case, and it's possible for a malicious userspace program to craft a request which triggers a 127-byte overflow. In practice, this overflow immediately overwrites the canary for the rtsock_msg_buffer() stack frame, resulting in a panic once the function returns. The bug allows an unprivileged user to crash the kernel by triggering a stack buffer overflow in rtsock_msg_buffer(). In particular, the overflow will corrupt a stack canary value that is verified when the function returns; this mitigates the impact of the stack overflow by triggering a kernel panic. Other kernel bugs may exist which allow userspace to find the canary value and thus defeat the mitigation, at which point local privilege escalation may be possible.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-3038 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-151865-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2026-03-09 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
A buffer overflow vulnerability exists in the rtsock_msg_buffer() function due to improper validation of the sockaddr length field, allowing a malicious userspace program to craft a request that triggers a 127-byte overflow.
The vulnerability is triggered when a malicious userspace program sends a crafted request to the rtsock_msg_buffer() function, which does not properly validate the length of the sockaddr structure before copying it into a sockaddr_storage structure on the stack, leading to a buffer overflow.
Questions
What is CVE-2026-3038?
A buffer overflow vulnerability exists in the rtsock_msg_buffer() function due to improper validation of the sockaddr length field, allowing a malicious userspace program to craft a request that triggers a 127-byte overflow.
What is the CVSS score for CVE-2026-3038?
CVE-2026-3038 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.5%.
Is CVE-2026-3038 actively exploited?
No confirmed active exploitation of CVE-2026-3038 as of 2026-09-25.
How do I remediate CVE-2026-3038?
Priority: IMMEDIATE. Advisory: https://security.freebsd.org/advisories/FreeBSD-SA-26:05.route.asc
What systems are affected by CVE-2026-3038?
CVE-2026-3038 affects Freebsd Freebsd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Freebsd","product":"Freebsd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.