{"id":"CVE-2022-49853","aliases":["CVE-2022-49853"],"related":[],"kind":"vulnerability","state":"published","title":"net: macvlan: fix memory leaks of macvlan_common_newlink","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: macvlan: fix memory leaks of macvlan_common_newlink\n\nkmemleak reports memory leaks in macvlan_common_newlink, as follows:\n\n ip link add link eth0 name .. type macvlan mode source macaddr add\n <MAC-ADDR>\n\nkmemleak reports:\n\nunreferenced object 0xffff8880109bb140 (size 64):\n  comm \"ip\", pid 284, jiffies 4294986150 (age 430.108s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 b8 aa 5a 12 80 88 ff ff  ..........Z.....\n    80 1b fa 0d 80 88 ff ff 1e ff ac af c7 c1 6b 6b  ..............kk\n  backtrace:\n    [<ffffffff813e06a7>] kmem_cache_alloc_trace+0x1c7/0x300\n    [<ffffffff81b66025>] macvlan_hash_add_source+0x45/0xc0\n    [<ffffffff81b66a67>] macvlan_changelink_sources+0xd7/0x170\n    [<ffffffff81b6775c>] macvlan_common_newlink+0x38c/0x5a0\n    [<ffffffff81b6797e>] macvlan_newlink+0xe/0x20\n    [<ffffffff81d97f8f>] __rtnl_newlink+0x7af/0xa50\n    [<ffffffff81d98278>] rtnl_newlink+0x48/0x70\n    ...\n\nIn the scenario where the macvlan mode is configured as 'source',\nmacvlan_changelink_sources() will be execured to reconfigure list of\nremote source mac addresses, at the same time, if register_netdevice()\nreturn an error, the resource generated by macvlan_changelink_sources()\nis not cleaned up.\n\nUsing this patch, in the case of an error, it will execute\nmacvlan_flush_sources() to ensure that the resource is cleaned up.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: macvlan: fix memory leaks of macvlan_common_newlink\n\nkmemleak reports memory leaks in macvlan_common_newlink, as follows:\n\n ip link add link eth0 name .. type macvlan mode source macaddr add\n <MAC-ADDR>\n\nkmemleak reports:\n\nunreferenced object 0xffff8880109bb140 (size 64):\n  comm \"ip\", pid 284, jiffies 4294986150 (age 430.108s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 b8 aa 5a 12 80 88 ff ff  ..........Z.....\n    80 1b fa 0d 80 88 ff ff 1e ff ac af c7 c1 6b 6b  ..............kk\n  backtrace:\n    [<ffffffff813e06a7>] kmem_cache_alloc_trace+0x1c7/0x300\n    [<ffffffff81b66025>] macvlan_hash_add_source+0x45/0xc0\n    [<ffffffff81b66a67>] macvlan_changelink_sources+0xd7/0x170\n    [<ffffffff81b6775c>] macvlan_common_newlink+0x38c/0x5a0\n    [<ffffffff81b6797e>] macvlan_newlink+0xe/0x20\n    [<ffffffff81d97f8f>] __rtnl_newlink+0x7af/0xa50\n    [<ffffffff81d98278>] rtnl_newlink+0x48/0x70\n    ...\n\nIn the scenario where the macvlan mode is configured as 'source',\nmacvlan_changelink_sources() will be execured to reconfigure list of\nremote source mac addresses, at the same time, if register_netdevice()\nreturn an error, the resource generated by macvlan_changelink_sources()\nis not cleaned up.\n\nUsing this patch, in the case of an error, it will execute\nmacvlan_flush_sources() to ensure that the resource is cleaned up.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: macvlan: corregir fugas de memoria de macvlan_common_newlink kmemleak informa de fugas de memoria en macvlan_common_newlink, como se indica a continuación: ip link add link eth0 name .. type macvlan mode source macaddr add  kmemleak informa: objeto no referenciado 0xffff8880109bb140 (tamaño 64): comm \"ip\", pid 284, jiffies 4294986150 (edad 430.108s) volcado hexadecimal (primeros 32 bytes): 00 00 00 00 00 00 00 00 b8 aa 5a 12 80 88 ff ff ..........Z..... 80 1b fa 0d 80 88 ff ff 1e ff ac af c7 c1 6b 6b ..............kk seguimiento inverso: [] kmem_cache_alloc_trace+0x1c7/0x300 [] macvlan_hash_add_source+0x45/0xc0 [] macvlan_changelink_sources+0xd7/0x170 [] macvlan_common_newlink+0x38c/0x5a0 [] macvlan_newlink+0xe/0x20 [] __rtnl_newlink+0x7af/0xa50 [] rtnl_newlink+0x48/0x70 ... En el escenario donde el modo macvlan está configurado como 'origen', se ejecutará macvlan_changelink_sources() para reconfigurar la lista de direcciones MAC de origen remoto. Al mismo tiempo, si register_netdevice() devuelve un error, el recurso generado por macvlan_changelink_sources() no se limpia. Con este parche, en caso de error, se ejecutará macvlan_flush_sources() para garantizar que el recurso se limpie.","source":"nvd"}],"published":"2025-05-01T14:10:07.726Z","modified":"2026-06-17T05:19:18.650Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"aa5fd0fb77486b8a6764ead8627baa14790e4280","fixed":"9f288e338be206713d79b29144c27fca4503c39b","status":"affected"},{"type":"git","introduced":"aa5fd0fb77486b8a6764ead8627baa14790e4280","fixed":"21d3a8b6a1e39e7529ce9de07316ee13a63f305b","status":"affected"},{"type":"git","introduced":"aa5fd0fb77486b8a6764ead8627baa14790e4280","fixed":"a81b44d1df1f07f00c0dcc0a0b3d2fa24a46289e","status":"affected"},{"type":"git","introduced":"aa5fd0fb77486b8a6764ead8627baa14790e4280","fixed":"685e73e3f7a9fb75cbf049a9d0b7c45cc6b57b2e","status":"affected"},{"type":"git","introduced":"aa5fd0fb77486b8a6764ead8627baa14790e4280","fixed":"956e0216a19994443c90ba2ea6b0b284c9c4f9cb","status":"affected"},{"type":"git","introduced":"aa5fd0fb77486b8a6764ead8627baa14790e4280","fixed":"a8d67367ab33604326cc37ab44fd1801bf5691ba","status":"affected"},{"type":"git","introduced":"aa5fd0fb77486b8a6764ead8627baa14790e4280","fixed":"9ea003c4671b2fc455320ecf6d4a43b0a3c1878a","status":"affected"},{"type":"git","introduced":"aa5fd0fb77486b8a6764ead8627baa14790e4280","fixed":"23569b5652ee8e8e55a12f7835f59af6f3cefc30","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"4.9.334","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.300","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.267","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.225","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.155","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.79","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.9","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.9","fixed":"4.9.334"},{"status":"affected","introduced":"4.10","fixed":"4.14.300"},{"status":"affected","introduced":"4.15","fixed":"4.19.267"},{"status":"affected","introduced":"4.20","fixed":"5.4.225"},{"status":"affected","introduced":"5.5","fixed":"5.10.155"},{"status":"affected","introduced":"5.11","fixed":"5.15.79"},{"status":"affected","introduced":"5.16","fixed":"6.0.9"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9f288e338be206713d79b29144c27fca4503c39b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21d3a8b6a1e39e7529ce9de07316ee13a63f305b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a81b44d1df1f07f00c0dcc0a0b3d2fa24a46289e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/685e73e3f7a9fb75cbf049a9d0b7c45cc6b57b2e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/956e0216a19994443c90ba2ea6b0b284c9c4f9cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a8d67367ab33604326cc37ab44fd1801bf5691ba","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ea003c4671b2fc455320ecf6d4a43b0a3c1878a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/23569b5652ee8e8e55a12f7835f59af6f3cefc30","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T16:07:26.571Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49853","url":"https://www.cve.org/CVERecord?id=CVE-2022-49853","licence":"CVE Terms of Use","modified":"2026-05-11T19:08:01.634Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49853","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49853","licence":"Public domain","modified":"2026-06-17T05:19:18.650Z"}],"updatedAt":"2026-11-25T22:58:20.902Z","epss":{"score":0.00224,"percentile":0.13891,"date":"2026-12-01T12:00:22.000Z"}}