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

CVE-2022-49803 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-49803, released May 1, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-49803
- Priority: Routine
- CVSS: 5.5 (Moderate)
- EPSS: 0.0020
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 1, 2025
- Weakness: Missing Release of Memory after Effective Lifetime
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-49803

## Description

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().

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 6.0.10-1 | [DEBIAN-CVE-2022-49803](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49803.md) | May 1, 2025 |
| Linux | linux Debian 13.5 (trixie) | 6.0.10-1 | [DEBIAN-CVE-2022-49803](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49803.md) | May 1, 2025 |
| Linux | linux Debian 14 | 6.0.10-1 | [DEBIAN-CVE-2022-49803](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49803.md) | May 1, 2025 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
