Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zlib in PPP code #374

Closed
Neustradamus opened this issue Oct 25, 2022 · 19 comments
Closed

zlib in PPP code #374

Neustradamus opened this issue Oct 25, 2022 · 19 comments

Comments

@Neustradamus
Copy link
Member

Neustradamus commented Oct 25, 2022

There is zlib in /common:

There is zlib in /pppdump:

It is needed to update or to delete from the code?

@paulusmack
Copy link
Collaborator

I added some functions to zlib in order to be able to support "deflate" packet compression more efficiently. If you try to use a standard zlib it won't work properly. If it was possible to use the standard zlib I would have done that from the beginning.

@Neustradamus
Copy link
Member Author

@paulusmack: It has not been integrated since this very old version?

If not, maybe good to add a PR here:

@paulusmack
Copy link
Collaborator

The zlib in common is only used for the Solaris kernel modules. I'll ask @carlsonj if it is still needed.

There is also a zlib in the pppdump directory which is even older.

I don't want getting stuff merged into upstream zlib to be on the critical path for getting a release out.

@carlsonj
Copy link
Contributor

carlsonj commented Oct 27, 2022 via email

@paulusmack
Copy link
Collaborator

I don't mind leaving common/zlib.c there if there is a chance it is still useful to somebody. However, unless someone finds a vulnerability in it, I don't feel like putting in effort to update it either.

@Neustradamus note that this code is required in source form here since it is needed for compiling a kernel module. We can't use a system library for this.

@Neustradamus
Copy link
Member Author

@paulusmack: Maybe good to update the code?

@paulusmack
Copy link
Collaborator

I took out the zlib code in pppdump. As to the version for the Solaris kernel modules, I'll let @carlsonj say what to do with it (default to just leaving it as is).

@Neustradamus
Copy link
Member Author

@paulusmack, @carlsonj: The problem is that this zlib code is not secure :/

James, please do an answer, it is not easy to have from you :/

@paulusmack
Copy link
Collaborator

@paulusmack, @carlsonj: The problem is that this zlib code is not secure :/

What exactly is the insecurity? I know there was a potential out-of-bounds access in the pppdump version of zlib.c, but I thought the version in common/ (which is only used in the Solaris kernel module) was a bit newer, and I don't know if the same problem was found in it. Do you have a reference to a problem in that specific code?

In any case, since it's only used on Solaris, it's not a problem for the majority of our user base these days.

@Neustradamus
Copy link
Member Author

@paulusmack: There are CVEs in old Zlib versions: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=zlib

@carlsonj
Copy link
Contributor

carlsonj commented Aug 22, 2024 via email

@paulusmack
Copy link
Collaborator

@carlsonj is there still any need to distribute kernel module source for Solaris in this package? If the Solaris kernel source includes the PPP modules then I would think they are probably more up to date than what we have here, so we should just delete the copy in this project. I removed the Linux kernel module source some time ago from this project (in 2008, in fact).

I think we could remove modules/* and common/*. None of those files have seen any real changes since 2004, as far as I can tell. Do you agree?

@paulusmack
Copy link
Collaborator

Oh and of course solaris/*, which hasn't had any real changes since 2005.

@carlsonj
Copy link
Contributor

carlsonj commented Aug 23, 2024 via email

@paulusmack
Copy link
Collaborator

So, if you want to yank them out, feel free.

Thanks.

Could you have a look at README.sol2 and tell me if anything in there is still useful, please? It was last updated 22 years ago. :/

@carlsonj
Copy link
Contributor

carlsonj commented Sep 10, 2024 via email

@paulusmack
Copy link
Collaborator

I see that it's definitely grown stale. I'll take some time and do a little updating. If you're close to shipping a new version right now, then don't wait on me. I think I want to look into the driver compatibility issue (if there indeed is one; I recall that we were just "worried" about it at the time of of the fork) so that maybe the solaris/ subdirectory can go as well. There are still Solaris derivatives around, but there are likely few other STREAMS users out there these days, and fewer still who really need a fully up-to-date version of pppd.

Great, thanks.

If you could also look at PR #515 and check that I'm not removing anything you think we should still distribute, that would be appreciated.

@carlsonj
Copy link
Contributor

carlsonj commented Sep 11, 2024 via email

@paulusmack
Copy link
Collaborator

The zlib code has been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants