{"id":"CVE-2022-49277","published":"2025-02-26T01:56:21Z","modified":"2026-05-11T18:56:34Z","title":"jffs2: fix memory leak in jffs2_do_mount_fs","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00276,"percentile":0.20438,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"references":[{"url":"https://git.kernel.org/stable/c/2a9d8184458562e6bf2f40d0e677fc85e2dd3834","tags":[]},{"url":"https://git.kernel.org/stable/c/9a0f6610c7daedd2eace430beeb08a8b7ac80699","tags":[]},{"url":"https://git.kernel.org/stable/c/dbe0d0521eaa6a3d235517319266c539bb5c5112","tags":[]},{"url":"https://git.kernel.org/stable/c/0978e9af4559a171ac7a74a1b3ef21804b0a0fa9","tags":[]},{"url":"https://git.kernel.org/stable/c/607d3aab7349f18e0d9dba4100d09d16fe27caca","tags":[]},{"url":"https://git.kernel.org/stable/c/4392e8aeebc5a4f8073620bccba7de1b1f6d7c88","tags":[]},{"url":"https://git.kernel.org/stable/c/5f34310d1376ca5b2ed798258def2c2ab3cc6699","tags":[]},{"url":"https://git.kernel.org/stable/c/c94128470e6fe53d9bd9d16d2d3271813f9d37af","tags":[]},{"url":"https://git.kernel.org/stable/c/d051cef784de4d54835f6b6836d98a8f6935772c","tags":[]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":4.09},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e631ddba588783edd521c5a89f7b2902772fb691, < 2a9d8184458562e6bf2f40d0e677fc85e2dd3834",">= e631ddba588783edd521c5a89f7b2902772fb691, < 9a0f6610c7daedd2eace430beeb08a8b7ac80699",">= e631ddba588783edd521c5a89f7b2902772fb691, < dbe0d0521eaa6a3d235517319266c539bb5c5112",">= e631ddba588783edd521c5a89f7b2902772fb691, < 0978e9af4559a171ac7a74a1b3ef21804b0a0fa9",">= e631ddba588783edd521c5a89f7b2902772fb691, < 607d3aab7349f18e0d9dba4100d09d16fe27caca",">= e631ddba588783edd521c5a89f7b2902772fb691, < 4392e8aeebc5a4f8073620bccba7de1b1f6d7c88",">= e631ddba588783edd521c5a89f7b2902772fb691, < 5f34310d1376ca5b2ed798258def2c2ab3cc6699",">= e631ddba588783edd521c5a89f7b2902772fb691, < c94128470e6fe53d9bd9d16d2d3271813f9d37af",">= e631ddba588783edd521c5a89f7b2902772fb691, < d051cef784de4d54835f6b6836d98a8f6935772c"]},{"vendor":"Linux","product":"Linux","versions":["2.6.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:45:30.429397Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54949","exploited":false,"provenance":"source"}}