Linux
nvmet: fix memory leak of bio integrity
In the Linux kernel, the following vulnerability has been resolved: nvmet: fix memory leak of bio integrity If nvmet receives commands with metadata there is a continuous memory leak of kmalloc-128 slab or more precisely bio->bi_integrity. Since commit bf4c89fc8797 ("block: don't call bio_uninit from bio_endio") each user of bio_init has to use bio_uninit as well. Otherwise the bio integrity is not getting free. Nvmet uses bio_init for inline bios. Uninit the inline bio to complete deallocation of integrity in bio.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f, < 431e58d56fcb5ff1f9eb630724a922e0d2a941df
- >= bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f, < 2e2028fcf924d1c6df017033c8d6e28b735a0508
- >= bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f, < 190f4c2c863af7cc5bb354b70e0805f06419c038
- 64149da0fddbbfe43e11c0348d8c8b4171dae3a2
- >= 6.10.10, < 6.11
Fixed in 431e58d56fcb5ff1f9eb630724a922e0d2a941df, 2e2028fcf924d1c6df017033c8d6e28b735a0508, 190f4c2c863af7cc5bb354b70e0805f06419c038, 6.11
- 6.11
Fixed in 0, 6.12.37, 6.15.6, 6.16
Mitigation
Upgrade Linux to 431e58d56fcb5ff1f9eb630724a922e0d2a941df or 2e2028fcf924d1c6df017033c8d6e28b735a0508 or 190f4c2c863af7cc5bb354b70e0805f06419c038 or 6.11 or later.
Upgrade Linux to 0 or 6.12.37 or 6.15.6 or 6.16 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.