caulk or spray foam can be used to seal the holes. The insulation will be compressed if the pipe runs close to the floor. caulk or premade gasket can be used to seal plumbing pipe penetrations in exterior walls.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.