{"id":"CVE-2022-49277","aliases":["CVE-2022-49277"],"related":[],"kind":"vulnerability","state":"published","title":"jffs2: fix memory leak in jffs2_do_mount_fs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\njffs2: fix memory leak in jffs2_do_mount_fs\n\nIf jffs2_build_filesystem() in jffs2_do_mount_fs() returns an error,\nwe can observe the following kmemleak report:\n\n--------------------------------------------\nunreferenced object 0xffff88811b25a640 (size 64):\n  comm \"mount\", pid 691, jiffies 4294957728 (age 71.952s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n  backtrace:\n    [<ffffffffa493be24>] kmem_cache_alloc_trace+0x584/0x880\n    [<ffffffffa5423a06>] jffs2_sum_init+0x86/0x130\n    [<ffffffffa5400e58>] jffs2_do_mount_fs+0x798/0xac0\n    [<ffffffffa540acf3>] jffs2_do_fill_super+0x383/0xc30\n    [<ffffffffa540c00a>] jffs2_fill_super+0x2ea/0x4c0\n    [...]\nunreferenced object 0xffff88812c760000 (size 65536):\n  comm \"mount\", pid 691, jiffies 4294957728 (age 71.952s)\n  hex dump (first 32 bytes):\n    bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb  ................\n    bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb  ................\n  backtrace:\n    [<ffffffffa493a449>] __kmalloc+0x6b9/0x910\n    [<ffffffffa5423a57>] jffs2_sum_init+0xd7/0x130\n    [<ffffffffa5400e58>] jffs2_do_mount_fs+0x798/0xac0\n    [<ffffffffa540acf3>] jffs2_do_fill_super+0x383/0xc30\n    [<ffffffffa540c00a>] jffs2_fill_super+0x2ea/0x4c0\n    [...]\n--------------------------------------------\n\nThis is because the resources allocated in jffs2_sum_init() are not\nreleased. Call jffs2_sum_exit() to release these resources to solve\nthe problem.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\njffs2: fix memory leak in jffs2_do_mount_fs\n\nIf jffs2_build_filesystem() in jffs2_do_mount_fs() returns an error,\nwe can observe the following kmemleak report:\n\n--------------------------------------------\nunreferenced object 0xffff88811b25a640 (size 64):\n  comm \"mount\", pid 691, jiffies 4294957728 (age 71.952s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n  backtrace:\n    [<ffffffffa493be24>] kmem_cache_alloc_trace+0x584/0x880\n    [<ffffffffa5423a06>] jffs2_sum_init+0x86/0x130\n    [<ffffffffa5400e58>] jffs2_do_mount_fs+0x798/0xac0\n    [<ffffffffa540acf3>] jffs2_do_fill_super+0x383/0xc30\n    [<ffffffffa540c00a>] jffs2_fill_super+0x2ea/0x4c0\n    [...]\nunreferenced object 0xffff88812c760000 (size 65536):\n  comm \"mount\", pid 691, jiffies 4294957728 (age 71.952s)\n  hex dump (first 32 bytes):\n    bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb  ................\n    bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb  ................\n  backtrace:\n    [<ffffffffa493a449>] __kmalloc+0x6b9/0x910\n    [<ffffffffa5423a57>] jffs2_sum_init+0xd7/0x130\n    [<ffffffffa5400e58>] jffs2_do_mount_fs+0x798/0xac0\n    [<ffffffffa540acf3>] jffs2_do_fill_super+0x383/0xc30\n    [<ffffffffa540c00a>] jffs2_fill_super+0x2ea/0x4c0\n    [...]\n--------------------------------------------\n\nThis is because the resources allocated in jffs2_sum_init() are not\nreleased. Call jffs2_sum_exit() to release these resources to solve\nthe problem.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: jffs2: se corrige la pérdida de memoria en jffs2_do_mount_fs Si jffs2_build_filesystem() en jffs2_do_mount_fs() devuelve un error, podemos observar el siguiente informe de kmemleak: -------------------------------------------- objeto sin referencia 0xffff88811b25a640 (tamaño 64): comm \"mount\", pid 691, jiffies 4294957728 (edad 71,952 s) volcado hexadecimal (primeros 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ seguimiento inverso: [] kmem_cache_alloc_trace+0x584/0x880 [] jffs2_sum_init+0x86/0x130 [] jffs2_do_mount_fs+0x798/0xac0 [] jffs2_do_fill_super+0x383/0xc30 [] jffs2_fill_super+0x2ea/0x4c0 [...] objeto sin referencia 0xffff88812c760000 (tamaño 65536): comm \"montar\", pid 691, jiffies 4294957728 (edad 71,952 s) volcado hexadecimal (primeros 32 bytes): bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb ................ bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb ................ seguimiento inverso: [] __kmalloc+0x6b9/0x910 [] jffs2_sum_init+0xd7/0x130 [] jffs2_do_mount_fs+0x798/0xac0 [] jffs2_do_fill_super+0x383/0xc30 [] jffs2_fill_super+0x2ea/0x4c0 [...] -------------------------------------------- Esto se debe a que los recursos asignados en jffs2_sum_init() no se liberan. Llame a jffs2_sum_exit() para liberar estos recursos y resolver el problema.","source":"nvd"}],"published":"2025-02-26T01:56:21.037Z","modified":"2026-06-17T05:17:34.640Z","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":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"2a9d8184458562e6bf2f40d0e677fc85e2dd3834","status":"affected"},{"type":"git","introduced":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"9a0f6610c7daedd2eace430beeb08a8b7ac80699","status":"affected"},{"type":"git","introduced":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"dbe0d0521eaa6a3d235517319266c539bb5c5112","status":"affected"},{"type":"git","introduced":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"0978e9af4559a171ac7a74a1b3ef21804b0a0fa9","status":"affected"},{"type":"git","introduced":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"607d3aab7349f18e0d9dba4100d09d16fe27caca","status":"affected"},{"type":"git","introduced":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"4392e8aeebc5a4f8073620bccba7de1b1f6d7c88","status":"affected"},{"type":"git","introduced":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"5f34310d1376ca5b2ed798258def2c2ab3cc6699","status":"affected"},{"type":"git","introduced":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"c94128470e6fe53d9bd9d16d2d3271813f9d37af","status":"affected"},{"type":"git","introduced":"e631ddba588783edd521c5a89f7b2902772fb691","fixed":"d051cef784de4d54835f6b6836d98a8f6935772c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.15","status":"unaffected"},{"type":"semver","introduced":"4.9.311","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.276","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.238","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.189","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.110","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.33","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","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":"2.6.15","fixed":"4.9.311"},{"status":"affected","introduced":"4.10","fixed":"4.14.276"},{"status":"affected","introduced":"4.15","fixed":"4.19.238"},{"status":"affected","introduced":"4.20","fixed":"5.4.189"},{"status":"affected","introduced":"5.5","fixed":"5.10.110"},{"status":"affected","introduced":"5.11","fixed":"5.15.33"},{"status":"affected","introduced":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2a9d8184458562e6bf2f40d0e677fc85e2dd3834","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a0f6610c7daedd2eace430beeb08a8b7ac80699","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbe0d0521eaa6a3d235517319266c539bb5c5112","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0978e9af4559a171ac7a74a1b3ef21804b0a0fa9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/607d3aab7349f18e0d9dba4100d09d16fe27caca","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4392e8aeebc5a4f8073620bccba7de1b1f6d7c88","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f34310d1376ca5b2ed798258def2c2ab3cc6699","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c94128470e6fe53d9bd9d16d2d3271813f9d37af","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d051cef784de4d54835f6b6836d98a8f6935772c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:45:30.429Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49277","url":"https://www.cve.org/CVERecord?id=CVE-2022-49277","licence":"CVE Terms of Use","modified":"2026-05-11T18:56:34.860Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49277","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49277","licence":"Public domain","modified":"2026-06-17T05:17:34.640Z"}],"updatedAt":"2026-11-25T22:58:20.352Z","epss":{"score":0.00276,"percentile":0.21397,"date":"2026-12-01T12:00:22.000Z"}}