ovl: do not copy up an xattr value that was never read
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e35c3b1dc69b8c8efe3d751fafb9b50a85f0e2f7, Kernel 3.19, Kernel 4.2 and 15 more.
In the Linux kernel, the following vulnerability has been resolved: ovl: do not copy up an xattr value that was never read Copy-up stores uninitialized kernel memory in an xattr of the upper file, where the user can read it. ovl_copy_xattr() may only pass bytes to ovl_do_setxattr() that ovl_do_getxattr() has read. When the read fails with -ERANGE the function asks for the size again, and if the new size fits the buffer it stores the buffer although nothing was read into it. The buffer comes from kvmalloc(), or it still holds the value of the previous xattr. A FUSE lower layer that answers every sized GETXATTR with -ERANGE made copy-up store 4096 bytes that the server never sent, with a kernel pointer in them, as an xattr of the upper file. Fix this by failing the copy-up with -EIO when the size that follows -ERANGE fits the buffer.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e4ad29fa0d224d05e08b2858e65f112fd8edd4fe <e35c3b1dc69b8c8efe3d751fafb9b50a85f0e2f7, >=3.18.27 <3.19, >=4.1.18 <4.2, >=4.4.3 <4.5, >=e4ad29fa0d224d05e08b2858e65f112fd8edd4fe <16fe398cdbcad6ee230aff5deb4386bc4560baca, >=e4ad29fa0d224d05e08b2858e65f112fd8edd4fe <2dedd7b7b805ce8a466c610115cc4565182f952e, >=e4ad29fa0d224d05e08b2858e65f112fd8edd4fe <3b1f5a4652539014f0162944f1a5f71ee520188a, >=e4ad29fa0d224d05e08b2858e65f112fd8edd4fe <628260a7204314ab5f1cd93bddb1721cc0226b38, >=e4ad29fa0d224d05e08b2858e65f112fd8edd4fe <6501862d1842865c163fcc6db5fc06da479bb456, >=e4ad29fa0d224d05e08b2858e65f112fd8edd4fe <755b5c5c9277be251a51623d6065abab948c61bc, >=e4ad29fa0d224d05e08b2858e65f112fd8edd4fe <8ed53aab9c9f12f9d258ebd2e4b268e92d4f9cf8, =3c0a63d74b4a12a0a98cd85b195031d8d4b109a6, =4.5, =f641fdbd8ca737df49e96d9d58206fb0a9d82512, =fa932190a5f332e1936ab0223c7c5d79b5596a9c | e35c3b1dc69b8c8efe3d751fafb9b50a85f0e2f7, 3.19, 4.2, 4.5, 16fe398cdbcad6ee230aff5deb4386bc4560baca, 2dedd7b7b805ce8a466c610115cc4565182f952e, 3b1f5a4652539014f0162944f1a5f71ee520188a, 628260a7204314ab5f1cd93bddb1721cc0226b38, 6501862d1842865c163fcc6db5fc06da479bb456, 755b5c5c9277be251a51623d6065abab948c61bc, 8ed53aab9c9f12f9d258ebd2e4b268e92d4f9cf8 |
| linux-kernel: Kernel | >=4.1.18 <4.2, >=4.4.3 <4.5, >=4.5.0 <5.10.275, >=5.11.0 <5.15.226, >=5.16.0 <6.1.193, >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=6.2.0 <6.6.163, >=6.7.0 <6.12.117, >=3.18.27 <3.19 | 4.2, 4.5, 5.10.275, 5.15.226, 6.1.193, 6.18.61, 7.3.2, 6.6.163, 6.12.117, 3.19 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket