Linux
net: slip: serialize receive against buffer reallocation
In the Linux kernel, the following vulnerability has been resolved: net: slip: serialize receive against buffer reallocation sl_realloc_bufs() replaces rbuff and updates buffsize while holding sl->lock. slip_receive_buf() reads those fields and writes through rbuff without holding the lock. An MTU change can therefore race with receive processing. An MTU shrink can expose the new smaller rbuff with the old larger bound, causing an out-of-bounds write. A receive callback which already loaded the old rbuff can instead continue writing after that buffer has been freed. Serialize receive processing with sl_realloc_bufs() by holding sl->lock while consuming each receive batch.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8180daf2b66155f84ec4f9e3f95488c8a3421716
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 189a550eb7e1dc10018718ddfc46d003ffe58653
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1be09d175b627fad7f6bec7ad27b8a4a99863912
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < eb3836eab47487823f362e6985e170a1e15f20fd
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 44401f7dd9940ced7098930ef64f5a332f279fc2
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d07b178bef511d69558cfc89fe1129258dc39f8
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0e37bbd6d617eb52bace49390e99eaedc1af73ce
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ee7f9bb9320add61f7b367d7e6cd55e3a3a4d65d
Fixed in 8180daf2b66155f84ec4f9e3f95488c8a3421716, 189a550eb7e1dc10018718ddfc46d003ffe58653, 1be09d175b627fad7f6bec7ad27b8a4a99863912, eb3836eab47487823f362e6985e170a1e15f20fd, 44401f7dd9940ced7098930ef64f5a332f279fc2, 5d07b178bef511d69558cfc89fe1129258dc39f8, 0e37bbd6d617eb52bace49390e99eaedc1af73ce, ee7f9bb9320add61f7b367d7e6cd55e3a3a4d65d
- 2.6.12
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 8180daf2b66155f84ec4f9e3f95488c8a3421716 or 189a550eb7e1dc10018718ddfc46d003ffe58653 or 1be09d175b627fad7f6bec7ad27b8a4a99863912 or eb3836eab47487823f362e6985e170a1e15f20fd or 44401f7dd9940ced7098930ef64f5a332f279fc2 or 5d07b178bef511d69558cfc89fe1129258dc39f8 or 0e37bbd6d617eb52bace49390e99eaedc1af73ce or ee7f9bb9320add61f7b367d7e6cd55e3a3a4d65d or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 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.