zephyr/subsys
Ravi kumar Veeramally 1a6f4a6368 net: tcp: Accept connections only in LISTENING state
Issue noticed with following scenario.

 1) TCP server is listening for connections but will handle
    only one connection at a time (e.g. echo-server sample)
 2) Client A connects, and the connection is accepted.
 3) Client B connects, instead of denying a connection,
    it is "auto" accepted (this is the actual bug) even
    if the application has not called accept().
 4) After the connection A is closed, the connection B
    gets accepted by application but now the closed
    connection A will cause confusion in the net-stack
 5) This confusion can cause memory leak or double free
    in the TCP core.

It is not easy to trigger this issue because it depends
on timing of the connections A & B.

Fixes: #18308

Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2019-09-10 22:57:48 +03:00
..
bluetooth Bluetooth: Controller: Typo in Kconfig 2019-09-10 08:32:02 -05:00
console subsystem: console: tty init checks and support for polled-only devices 2019-09-08 12:43:49 +02:00
cpp cpp: support for 64-bit constructors 2019-07-30 18:55:34 -07:00
debug subsys/debug/tracing: rearrange for standard use of extern "C" 2019-08-19 23:36:59 +02:00
dfu dfu: fix printf formatting in img_util 2019-08-16 20:40:13 +02:00
disk disk: Fix usdhc driver out-of-bounds array access 2019-08-30 16:57:55 +02:00
fb scripts: gen_cfb_font_header: modify to replicate cfb fonts 2019-07-31 05:43:50 -04:00
fs fcb: start using errno codes 2019-09-08 12:42:53 +02:00
jwt cleanup: include/: move zephyr/jwt.h to data/jwt.h 2019-06-27 22:55:49 -04:00
logging logging: Add basic userspace support 2019-08-27 14:29:21 -04:00
mgmt Bluetooth: GATT: Fix using variable size storage for CCC 2019-08-22 15:14:39 +03:00
net net: tcp: Accept connections only in LISTENING state 2019-09-10 22:57:48 +03:00
power cleanup: include/: move misc/reboot.h to power/reboot.h 2019-06-27 22:55:49 -04:00
random cleanup: include/: move entropy.h to drivers/entropy.h 2019-06-27 22:55:49 -04:00
settings fcb: start using errno codes 2019-09-08 12:42:53 +02:00
shell subsystem: kernel_shell: extend thread info 2019-09-08 12:39:58 +02:00
stats cleanup: include/: move stats.h to stats/stats.h 2019-06-27 22:55:49 -04:00
storage subsys/storage/flash_map: detect missing flash device 2019-07-24 09:20:56 -04:00
testsuite drivers/pci: remove legacy PCI implementation 2019-09-08 22:09:10 -04:00
usb usb_device: Fix typo in comment 2019-09-09 13:38:41 -05:00
CMakeLists.txt
Kconfig