# CVE-2022-49803: netdevsim: Fix memory leak of nsim_dev->fa_cookie

Status: published. Published: 2025-05-01. Updated: 2026-11-05.

In the Linux kernel, the following vulnerability has been resolved:

netdevsim: Fix memory leak of nsim_dev->fa_cookie

kmemleak reports this issue:

unreferenced object 0xffff8881bac872d0 (size 8):
  comm "sh", pid 58603, jiffies 4481524462 (age 68.065s)
  hex dump (first 8 bytes):
    04 00 00 00 de ad be ef                          ........
  backtrace:
    [<00000000c80b8577>] __kmalloc+0x49/0x150
    [<000000005292b8c6>] nsim_dev_trap_fa_cookie_write+0xc1/0x210 [netdevsim]
    [<0000000093d78e77>] full_proxy_write+0xf3/0x180
    [<000000005a662c16>] vfs_write+0x1c5/0xaf0
    [<000000007aabf84a>] ksys_write+0xed/0x1c0
    [<000000005f1d2e47>] do_syscall_64+0x3b/0x90
    [<000000006001c6ec>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

The issue occurs in the following scenarios:

nsim_dev_trap_fa_cookie_write()
  kmalloc() fa_cookie
  nsim_dev->fa_cookie = fa_cookie
..
nsim_drv_remove()

The fa_cookie allocked in nsim_dev_trap_fa_cookie_write() is not freed. To
fix, add kfree(nsim_dev->fa_cookie) to nsim_drv_remove().

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ d3cbb907ae57fe5da314b51d949b617b538bdeae; < 7d79725a7073d86b9185f87718e22f3d65115801 (affected, git); ≥ d3cbb907ae57fe5da314b51d949b617b538bdeae; < 6d463ddd0107d4188229d996dcdd45c99bad8af7 (affected, git); ≥ d3cbb907ae57fe5da314b51d949b617b538bdeae; < 207edad5717e0a5709ce8467f0eff41c607835c9 (affected, git); ≥ d3cbb907ae57fe5da314b51d949b617b538bdeae; < 064bc7312bd09a48798418663090be0c776183db (affected, git). Source: CNA: Linux
- Linux / Linux: 5.7 (affected); ≥ 0; < 5.7 (unaffected, semver); ≥ 5.10.260; ≤ 5.10.* (unaffected, semver); ≥ 5.15.209; ≤ 5.15.* (unaffected, semver); ≥ 6.0.10; ≤ 6.0.* (unaffected, semver); ≥ 6.1; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.20% as of 2026-11-05; percentile 10.37%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/7d79725a7073d86b9185f87718e22f3d65115801 (CNA: Linux)

- https://git.kernel.org/stable/c/6d463ddd0107d4188229d996dcdd45c99bad8af7 (CNA: Linux)

- https://git.kernel.org/stable/c/207edad5717e0a5709ce8467f0eff41c607835c9 (CNA: Linux)

- https://git.kernel.org/stable/c/064bc7312bd09a48798418663090be0c776183db (CNA: Linux)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2022-49803; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2022-49803; retrieved 2026-11-05; source updated Not reported

Revision: f10a323f6c35d0750afb92dcce02e69c7d86a47e4ff6fd71c749aaf375d3f54a

Canonical: https://y2.dev/cve/CVE-2022-49803

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.