net: qrtr: fix 32-bit integer overflow in qrtr_endpoint_post()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d0597074e99731fdad5593e4f6d056a3866f2cab, Kernel 5.10.261, Kernel 5.13 and 15 more.
In the Linux kernel, the following vulnerability has been resolved: net: qrtr: fix 32-bit integer overflow in qrtr_endpoint_post() qrtr_endpoint_post() validates an incoming packet with if (!size || len != ALIGN(size, 4) + hdrlen) goto err; where size comes from the wire. On 32-bit, size_t is 32 bits and ALIGN(size, 4) wraps to 0 for size >= 0xfffffffd, so the check passes and skb_put_data(skb, data + hdrlen, size) writes past the hdrlen-sized skb and oopses the kernel. 64-bit is unaffected. This is the 32-bit residual of ad9d24c9429e2 ("net: qrtr: fix OOB Read in qrtr_endpoint_post"), which fixed only the 64-bit case. Reject any size that cannot fit the buffer before the ALIGN.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=ad9d24c9429e2159d1e279dc3a83191ccb4daf1d <d0597074e99731fdad5593e4f6d056a3866f2cab, >=5.10.46 <5.10.261, >=5.12.13 <5.13, >=5.4.128 <5.5, >=960b08dd36de1e341e3eb43d1c547513e338f4f8 <3665e644ea081c4624a1637023b0de3b29f4ae04, >=ad9d24c9429e2159d1e279dc3a83191ccb4daf1d <20054869770c7df060c5ecee3e8bbf9029c47191, >=ad9d24c9429e2159d1e279dc3a83191ccb4daf1d <22100a8f73d4ae4f17697dae93d4e2e1d283a6ec, >=ad9d24c9429e2159d1e279dc3a83191ccb4daf1d <242408b5b763c01288adf3113cbce84378a76e1a, >=ad9d24c9429e2159d1e279dc3a83191ccb4daf1d <689b7267f8632b4661879dc323e26ebb60978afb, >=ad9d24c9429e2159d1e279dc3a83191ccb4daf1d <7f72c285f6d3bf63968a0344beee8ab1b370198b, >=ad9d24c9429e2159d1e279dc3a83191ccb4daf1d <b609f7f46916c6b05585ca82455077198a23770f, =19892ab9c9d838e2e5a7744d36e4bb8b7c3292fe, =26b8d10703a9be45d6097946b2b4011f7dd2c56f, =5.13, =f8111c0d7ed42ede41a3d0d393b104de0730a8a6, >=4.19.196 <4.20 | d0597074e99731fdad5593e4f6d056a3866f2cab, 5.10.261, 5.13, 5.5, 3665e644ea081c4624a1637023b0de3b29f4ae04, 20054869770c7df060c5ecee3e8bbf9029c47191, 22100a8f73d4ae4f17697dae93d4e2e1d283a6ec, 242408b5b763c01288adf3113cbce84378a76e1a, 689b7267f8632b4661879dc323e26ebb60978afb, 7f72c285f6d3bf63968a0344beee8ab1b370198b, b609f7f46916c6b05585ca82455077198a23770f, 4.20 |
| linux-kernel: Kernel | >=5.10.46 <5.10.261, >=5.12.13 <5.13, >=5.13.0 <5.15.212, >=5.16.0 <6.1.178, >=5.4.128 <5.5, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=4.19.196 <4.20 | 5.10.261, 5.13, 5.15.212, 6.1.178, 5.5, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 4.20 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket