In the design of shared resource networked control systems (NCSs), resource managers play an important role to appropriately allocate limited resources across the distributed system. They are often used to fairly distribute the limited bandwidth among the medium-sharing entities at the expense of delaying or discarding unnecessary data samples. Considering the rapidly growing volume of information being exchanged, a relevant scenario for efficient resource management is statedependent data buffering via network queues. In this paper, we propose state-dependent data buffering for shared-resource NCSs, such that the buffer state, i.e. queue length, can be controlled depending on the real-time conditions of both the control systems and the communication network. We consider that the transmission decisions at the sensor sides are taken by event-based schedulers, and those data eventually sent for transmission are queued and processed depending on the available communication resource. We derive sufficient conditions under which the NCS with the proposed cross-layer transmission scheme is stable in almost sure mean-square sense. Moreover, we show performance improvements resulting from our proposed design in comparison with its state-independent counterpart.