]> git.webhop.me Git - bs-cst-neutrino-hd.git/commit
add kernel 4.10.12 & 4.4.35 dvb-core-section-callback-uaf-guard.patch
authorMarkham <markham001@gmx.de>
Fri, 1 May 2026 13:26:13 +0000 (15:26 +0200)
committerMarkham <markham001@gmx.de>
Fri, 1 May 2026 13:26:13 +0000 (15:26 +0200)
commit42a9ba52f894a299a9bf8d1bc90ee18cdd62236a
tree6d3ef9283fd4bc7af0904db29d53f5402f6800ca
parentae80c4e0ccf902369d2aedea1722066973158d92
add kernel 4.10.12 & 4.4.35 dvb-core-section-callback-uaf-guard.patch

dvb-core: guard dmxdev callbacks against stale dispatch

- Some out-of-tree demux drivers can deliver section and TS callbacks after release_filter() / release_ts_feed() has returned, with priv pointers cleared or slots already recycled. dvb-core assumes synchronous teardown and may dereference stale state.
- Add defensive validation in both callback paths: use READ_ONCE() for priv/dev loads, verify state and back-pointers under dev->lock, and drop callbacks that no longer belong to the active slot/feed.
- Also reject NULL src in dvb_dmxdev_buffer_write() to avoid passing it to dvb_ringbuffer_write() from a bad dispatcher.
- This fixes crashes seen on hd51 during CA zap storms, first in section_callback() and then in ts_callback().# Please enter the commit message for your changes. Lines starting
archive-patches/armbox/hd5x/linux-4.10.12-dvb-core-section-callback-uaf-guard.patch [new file with mode: 0644]
archive-patches/armbox/hd6x/linux-4.4.35-dvb-core-section-callback-uaf-guard.patch [new file with mode: 0644]
make/kernel-arm.mk