smb: client: Fix next buffer leak in receive_encrypted_standard()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.261, Kernel 5.15.212, Kernel 6.1.178 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: smb: client: Fix next buffer leak in receive_encrypted_standard() receive_encrypted_standard() allocates next_buffer before checking whether the number of compound PDUs already reached MAX_COMPOUND. If the limit check fails, the function returns immediately and the newly allocated next_buffer is not assigned to server->smallbuf/server->bigbuf, making it leaked. Move the MAX_COMPOUND check before allocating next_buffer.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.19 <5.10.261, >=5.11 <5.15.212, >=5.16 <6.1.178, >=6.13 <6.18.39, >=6.19 <7.1.4, >=6.2 <6.6.145, >=6.7 <6.12.96, >=b24df3e30cbf48255db866720fb71f14bf9d2f39 <1c6267a1d5cf4c73b656f8181b310cbbb3e4767b, >=b24df3e30cbf48255db866720fb71f14bf9d2f39 <297243e365fc9fe2f8e9b7dd535a65d922cd108b, >=b24df3e30cbf48255db866720fb71f14bf9d2f39 <67097772df7791c53d608f04bd31c676ccf79b83, >=b24df3e30cbf48255db866720fb71f14bf9d2f39 <68fc0b6cc03ca58060c0f36454e169f5fe258974, >=b24df3e30cbf48255db866720fb71f14bf9d2f39 <9136a08dc29328edd9867f2545e73906ac9df93b, >=b24df3e30cbf48255db866720fb71f14bf9d2f39 <927d4805aea0a287d36dd4f826ee24d69a2afee3, >=b24df3e30cbf48255db866720fb71f14bf9d2f39 <94e4f672db029414b9888b5137a7559f1febf2d8, =4.19, >=b24df3e30cbf48255db866720fb71f14bf9d2f39 <07e0ab81df1790afa35732a4e8e07ff831b29008 | 5.10.261, 5.15.212, 6.1.178, 6.18.39, 7.1.4, 6.6.145, 6.12.96, 1c6267a1d5cf4c73b656f8181b310cbbb3e4767b, 297243e365fc9fe2f8e9b7dd535a65d922cd108b, 67097772df7791c53d608f04bd31c676ccf79b83, 68fc0b6cc03ca58060c0f36454e169f5fe258974, 9136a08dc29328edd9867f2545e73906ac9df93b, 927d4805aea0a287d36dd4f826ee24d69a2afee3, 94e4f672db029414b9888b5137a7559f1febf2d8, 07e0ab81df1790afa35732a4e8e07ff831b29008 |
| linux-kernel: Kernel | >=4.19.0 <5.10.261, >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.39, >=6.19.0 <7.1.4, >=6.2.0 <6.6.145, >=6.7.0 <6.12.96 | 5.10.261, 5.15.212, 6.1.178, 6.18.39, 7.1.4, 6.6.145, 6.12.96 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket