Description
In the Linux kernel, the following vulnerability has been resolved: apparmor: fix a leak on a rejected string table entry unpack_strs_table() stores each entry into the table only after validating it, so an entry the validation rejects is never freed. Up to 64KB leaks per rejected entry. Store the pointer before validating it.
Affected products and versions
Linux Linuxc140dcd1246bfe705921ca881bbb247ff1ba2bca – < 7a2962d20612a834e45d8a8bde5b36abb8e93aeb · c140dcd1246bfe705921ca881bbb247ff1ba2bca – < f7bd6285ffeb425793334f6d48ccb5035cab2fa7Fixed in: 7a2962d20612a834e45d8a8bde5b36abb8e93aeb · f7bd6285ffeb425793334f6d48ccb5035cab2fa7
Linux Linux7.0Fixed in: 7.3.6 · 7.4-rc1
References
- git.kernel.org/stable/c/7a2962d20612a834e45d8a8bde5b36abb8e93aeb
- git.kernel.org/stable/c/f7bd6285ffeb425793334f6d48ccb5035cab2fa7
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.