Skip to content

SECURITY ISSUE with connector

Philipp Reisner dm-devel linux-fbdev lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8connector: Keep the skb in cn_callback_datadrivers/connector/cn_queue.c drivers/connector/connector.c include/linux/connector.h+9 -90 replies
2/8connector: Provide the sender's credentials to the callbackDocumentation/connector/cn_test.c Documentation/connector/connector.txt drivers/connector/cn_queue.c +7 more+19 -180 replies
3/8connector/dm: Fixed a compilation warningdrivers/md/dm-log-userspace-transfer.c+1 -20 replies
4/8connector: Removed the destruct_data callback since it is always kfree_skb()drivers/connector/cn_queue.c drivers/connector/connector.c include/linux/connector.h+5 -130 replies
5/8dm/connector: Only process connector packages from privileged processesdrivers/md/dm-log-userspace-transfer.c+3 -01 reply
6/8dst/connector: Disallow unpliviged users to configure dstdrivers/staging/dst/dcore.c+5 -00 replies
7/8pohmelfs/connector: Disallow unpliviged users to configure pohmelfsdrivers/staging/pohmelfs/config.c+3 -00 replies
8/8uvesafb/connector: Disallow unpliviged users to send netlink packetsdrivers/video/uvesafb.c+3 -00 replies

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLars EllenbergEvgeniy PolyakovJonathan Brassow
SeriesA-b A-b A-b A-b
1/8A-b A-b
2/8A-b A-b
3/8A-b A-b
4/8A-b A-b
5/8R-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] SECURITY ISSUE with connector

Affected: All code that uses connector, in kernel and out of mainline

The connector, as it is today, does not allow the in kernel receiving parts to do any checks on privileges of a message's sender.

I know, there are not many out there that like connector, but as long as it is in the kernel, we have to fix the security issues it has!

Please either drop connector, or someone who feels a bit responsible and has our beloved dictator's blessing, PLEASE PLEASE PLEASE take this into your tree, and send the pull request to Linus.

Patches 1 to 4 are already Acked-by Evgeny, the connector's maintainer. Patches 5 to 7 are the obvious fixes to the connector user's code.

For convenience these patches are also available as git tree:
git://git.drbd.org/linux-2.6-drbd.git connector-fix

-Phil

Philipp Reisner (8):
connector: Keep the skb in cn_callback_data
connector: Provide the sender's credentials to the callback connector/dm: Fixed a compilation warning
connector: Removed the destruct_data callback since it is always kfree_skb() dm/connector: Only process connector packages from privileged processes dst/connector: Disallow unpliviged users to configure dst pohmelfs/connector: Disallow unpliviged users to configure pohmelfs uvesafb/connector: Disallow unpliviged users to send netlink packets

 Documentation/connector/cn_test.c      |    2 +-
 Documentation/connector/connector.txt  |    8 ++++----
 drivers/connector/cn_queue.c           |   12 +++++++-----
 drivers/connector/connector.c          |   22 ++++++++--------------
 drivers/md/dm-log-userspace-transfer.c |    6 ++++--
 drivers/staging/dst/dcore.c            |    7 ++++++-
 drivers/staging/pohmelfs/config.c      |    5 ++++-
 drivers/video/uvesafb.c                |    5 ++++-
 drivers/w1/w1_netlink.c                |    2 +-
 include/linux/connector.h              |   11 ++++-------
 10 files changed, 43 insertions(+), 37 deletions(-)